Test default max for card retrieval
This commit is contained in:
@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user