Skip to content

Commit

Permalink
Merge pull request #19165 from jmchilton/runaway_history_view_test
Browse files Browse the repository at this point in the history
Stablize HistoryView.test.js
  • Loading branch information
mvdbeek authored Nov 21, 2024
2 parents 1615f12 + ad0c9d4 commit 43984c1
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 43984c1

Please sign in to comment.