Skip to content

Commit

Permalink
This really stablizes these tests - they sort of runaway without this.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton committed Nov 19, 2024
1 parent 6463f86 commit ad0c9d4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions client/src/components/History/HistoryView.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ jest.mock("stores/services/history.services");

const { server, http } = useServerMock();

jest.mock("vue-router/composables", () => ({
useRoute: jest.fn(() => ({})),
useRouter: jest.fn(() => ({})),
}));

function create_history(historyId, userId, purged = false, archived = false) {
const historyName = `${userId}'s History ${historyId}`;
return {
Expand Down

0 comments on commit ad0c9d4

Please sign in to comment.