Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kubk committed Dec 11, 2023
1 parent 94c619b commit 4cbf65f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/store/deck-form-store.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ vi.mock("../api/api.ts", () => {
};
});

vi.mock("../lib/voice-playback/speak.ts", async () => {
return {
speak: () => {},
};
});

describe("deck form store", () => {
afterEach(() => {
vi.clearAllMocks();
Expand Down
6 changes: 6 additions & 0 deletions src/store/review-store.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ vi.mock("./deck-list-store.ts", () => {
};
});

vi.mock("../lib/voice-playback/speak.ts", async () => {
return {
speak: () => {},
};
});

const cardToSnapshot = (card: CardUnderReviewStore) => ({
back: card.back,
deckName: card.deckName,
Expand Down

0 comments on commit 4cbf65f

Please sign in to comment.