mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-23 19:44:30 -07:00
Support ink scrolling final pr (#12567)
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2025 Google LLC
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import { Text } from 'ink';
|
||||
import { describe, it, expect } from 'vitest';
|
||||
import { StickyHeader } from './StickyHeader.js';
|
||||
import { renderWithProviders } from '../../test-utils/render.js';
|
||||
|
||||
describe('StickyHeader', () => {
|
||||
it('renders children', () => {
|
||||
const { lastFrame } = renderWithProviders(
|
||||
<StickyHeader width={80}>
|
||||
<Text>Hello Sticky</Text>
|
||||
</StickyHeader>,
|
||||
);
|
||||
expect(lastFrame()).toContain('Hello Sticky');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user