diff --git a/test/cardService.test.ts b/test/cardService.test.ts index ed5eda9..240f0d5 100644 --- a/test/cardService.test.ts +++ b/test/cardService.test.ts @@ -19,10 +19,10 @@ describe('Card Service', () => { expect(result.name).toEqual('Gardevoir'); }) - it('should get a default list of cards using the cards resource with no query params', async () => { - const totalCards = 13438; - const results: Card[] = await getAllCards(); - expect(results).toHaveLength(totalCards); + it('should get a maximum of 250 cards given a page number by default', async () => { + const totalCards = 250 + const results: Card[] = await findCardsByQueries({ page: 1}); + expect(results).toHaveLength(250); }); it('should get a list of card supertypes', async () => {