mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-20 10:10:56 -07:00
test(cli): refactor tests for async render utilities (#23252)
This commit is contained in:
committed by
GitHub
parent
86a3a913b5
commit
6c78eb7a39
@@ -127,7 +127,7 @@ describe('useExtensionUpdates', () => {
|
||||
return null;
|
||||
}
|
||||
|
||||
render(<TestComponent />);
|
||||
await render(<TestComponent />);
|
||||
|
||||
await waitFor(() => {
|
||||
expect(addItem).toHaveBeenCalledWith(
|
||||
@@ -177,7 +177,7 @@ describe('useExtensionUpdates', () => {
|
||||
return null;
|
||||
}
|
||||
|
||||
render(<TestComponent />);
|
||||
await render(<TestComponent />);
|
||||
|
||||
await waitFor(
|
||||
() => {
|
||||
@@ -255,7 +255,7 @@ describe('useExtensionUpdates', () => {
|
||||
return null;
|
||||
}
|
||||
|
||||
render(<TestComponent />);
|
||||
await render(<TestComponent />);
|
||||
|
||||
await waitFor(
|
||||
() => {
|
||||
@@ -338,7 +338,7 @@ describe('useExtensionUpdates', () => {
|
||||
return null;
|
||||
}
|
||||
|
||||
render(<TestComponent />);
|
||||
await render(<TestComponent />);
|
||||
|
||||
await waitFor(() => {
|
||||
expect(addItem).toHaveBeenCalledTimes(1);
|
||||
|
||||
Reference in New Issue
Block a user