fix(security): sanitize session bootstrap failures
This commit is contained in:
@@ -109,11 +109,12 @@ test("close calls onClose without mutating the activity log", async () => {
|
||||
];
|
||||
useSessionStore.setState({ activityLog });
|
||||
render(<ModelActivityPanel onClose={onClose} />);
|
||||
const expectedLog = useSessionStore.getState().activityLog.map((entry) => ({ ...entry }));
|
||||
|
||||
await userEvent.click(screen.getByRole("button", { name: /close model activity/i }));
|
||||
|
||||
expect(onClose).toHaveBeenCalledOnce();
|
||||
expect(useSessionStore.getState().activityLog).toEqual(activityLog);
|
||||
expect(useSessionStore.getState().activityLog).toEqual(expectedLog);
|
||||
});
|
||||
|
||||
test("isNearBottom includes the 48px boundary", () => {
|
||||
|
||||
Reference in New Issue
Block a user