Test default max for card retrieval

This commit is contained in:
Tee
2021-03-23 21:26:22 -04:00
parent 59cba1b831
commit 4cb8376cd1

View File

@ -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 () => {