Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kubk committed Dec 14, 2023
1 parent 5f13ba3 commit 3f474f3
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions src/store/deck-form-store.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,18 +83,23 @@ vi.mock("./deck-list-store.ts", () => {
},
];

const myDecks = [
{
id: 1,
cardsToReview: deckCardsMock.slice(0, 2),
share_id: null,
deck_card: deckCardsMock,
name: "Test",
},
] as DeckWithCardsWithReviewType[];

return {
deckListStore: {
replaceDeck: () => {},
myDecks: [
{
id: 1,
cardsToReview: deckCardsMock.slice(0, 2),
share_id: null,
deck_card: deckCardsMock,
name: "Test",
},
] as DeckWithCardsWithReviewType[],
searchDeckById: (id: number) => {
return myDecks.find((deck) => deck.id === id);
},
myDecks: myDecks
},
};
});
Expand Down

0 comments on commit 3f474f3

Please sign in to comment.