Skip to content

Commit a6a5c0c

Browse files
test(web): address slice 3 review feedback
1 parent b09ccfb commit a6a5c0c

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

‎apps/web/src/components/chat/McpAppFrame.browser.test.tsx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,10 @@ import { render as renderUi } from "../../../test/render";
7777
import { McpAppFrame } from "./McpAppFrame";
7878

7979
function setup() {
80+
let skew = 0;
81+
// Advance the host cooldown without manufacturing browser user activation.
8082
const now = performance.now.bind(performance);
8183
const clock = vi.spyOn(performance, "now").mockImplementation(() => now() + skew);
82-
let skew = 0;
8384
const answers: string[] = [];
8485
let answered: (() => void) | undefined;
8586
const onProbe = (event: MessageEvent) => {

‎apps/web/src/components/chat/ProviderModelPicker.browser.test.tsx‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,6 @@ vi.mock(import("~/hooks/useSettings"), async (original) => ({
3737
},
3838
}));
3939

40-
vi.mock(import("@tanstack/react-router"), async (original) => ({
41-
...(await original()),
42-
useNavigate: () => vi.fn(),
43-
}));
44-
4540
function providerEntry(instanceId: string, driver: string) {
4641
const provider: ServerProvider = {
4742
instanceId: ProviderInstanceId.make(instanceId),

0 commit comments

Comments
 (0)