mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-19 09:41:17 -07:00
Migrate core render util to use xterm.js as part of the rendering loop. (#19044)
This commit is contained in:
@@ -10,17 +10,22 @@ import { StickyHeader } from './StickyHeader.js';
|
||||
import { renderWithProviders } from '../../test-utils/render.js';
|
||||
|
||||
describe('StickyHeader', () => {
|
||||
it.each([true, false])('renders children with isFirst=%s', (isFirst) => {
|
||||
const { lastFrame } = renderWithProviders(
|
||||
<StickyHeader
|
||||
isFirst={isFirst}
|
||||
width={80}
|
||||
borderColor="green"
|
||||
borderDimColor={false}
|
||||
>
|
||||
<Text>Hello Sticky</Text>
|
||||
</StickyHeader>,
|
||||
);
|
||||
expect(lastFrame()).toContain('Hello Sticky');
|
||||
});
|
||||
it.each([true, false])(
|
||||
'renders children with isFirst=%s',
|
||||
async (isFirst) => {
|
||||
const { lastFrame, waitUntilReady, unmount } = renderWithProviders(
|
||||
<StickyHeader
|
||||
isFirst={isFirst}
|
||||
width={80}
|
||||
borderColor="green"
|
||||
borderDimColor={false}
|
||||
>
|
||||
<Text>Hello Sticky</Text>
|
||||
</StickyHeader>,
|
||||
);
|
||||
await waitUntilReady();
|
||||
expect(lastFrame()).toContain('Hello Sticky');
|
||||
unmount();
|
||||
},
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user