Skip to content

Commit 60b29b5

Browse files
committed
fix gemini feedback
1 parent b313ef8 commit 60b29b5

1 file changed

Lines changed: 1 addition & 14 deletions

File tree

packages/cli/src/ui/AppContainer.test.tsx

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1506,7 +1506,7 @@ describe('AppContainer State Management', () => {
15061506
// Arrange: Mock initial model
15071507
vi.spyOn(mockConfig, 'getModel').mockReturnValue('initial-model');
15081508

1509-
const { rerender: actualRerender, unmount: actualUnmount } = render(
1509+
const { unmount } = render(
15101510
<AppContainer
15111511
config={mockConfig}
15121512
settings={mockSettings}
@@ -1515,9 +1515,6 @@ describe('AppContainer State Management', () => {
15151515
/>,
15161516
);
15171517

1518-
const rerender = actualRerender;
1519-
const unmount = actualUnmount;
1520-
15211518
await act(async () => {
15221519
await new Promise((resolve) => setTimeout(resolve, 0));
15231520
});
@@ -1536,16 +1533,6 @@ describe('AppContainer State Management', () => {
15361533
handler({ model: 'new-model' });
15371534
});
15381535

1539-
// Rerender to reflect state change
1540-
rerender(
1541-
<AppContainer
1542-
config={mockConfig}
1543-
settings={mockSettings}
1544-
version="1.0.0"
1545-
initializationResult={mockInitResult}
1546-
/>,
1547-
);
1548-
15491536
// Assert: Verify model is updated
15501537
expect(capturedUIState.currentModel).toBe('new-model');
15511538
unmount();

0 commit comments

Comments
 (0)