Skip to content

Commit 28cde8e

Browse files
committed
Fix ActivityBar test mock to include useRouter
1 parent 48bcc41 commit 28cde8e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

client/src/components/ActivityBar/ActivityBar.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ vi.mock("@/composables/config", () => ({
2222

2323
vi.mock("vue-router/composables", () => ({
2424
useRoute: vi.fn(() => ({})),
25+
useRouter: vi.fn(() => ({ push: vi.fn() })),
2526
}));
2627

2728
const { server, http } = useServerMock();

0 commit comments

Comments
 (0)