mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-07-18 22:10:52 -07:00
test(cli): refactor tests for async render utilities (#23252)
This commit is contained in:
committed by
GitHub
parent
86a3a913b5
commit
6c78eb7a39
@@ -13,7 +13,7 @@ describe('StickyHeader', () => {
|
||||
it.each([true, false])(
|
||||
'renders children with isFirst=%s',
|
||||
async (isFirst) => {
|
||||
const { lastFrame, waitUntilReady, unmount } = await renderWithProviders(
|
||||
const { lastFrame, unmount } = await renderWithProviders(
|
||||
<StickyHeader
|
||||
isFirst={isFirst}
|
||||
width={80}
|
||||
@@ -23,7 +23,6 @@ describe('StickyHeader', () => {
|
||||
<Text>Hello Sticky</Text>
|
||||
</StickyHeader>,
|
||||
);
|
||||
await waitUntilReady();
|
||||
expect(lastFrame()).toContain('Hello Sticky');
|
||||
unmount();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user