Resolve TypeScript card test warnings

This commit is contained in:
Tee
2021-03-23 21:28:19 -04:00
parent 4cb8376cd1
commit e681d3a8db

View File

@ -1,4 +1,4 @@
import { findCardByID, findCardsByQueries, getAllCards, getSupertypes, getSubtypes, getTypes, getRarities } from "../src/services/cardService";
import { findCardByID, findCardsByQueries, getSupertypes, getSubtypes, getTypes, getRarities } from "../src/services/cardService";
import { Parameter } from "../src/interfaces/parameter";
import { Card } from "../src/interfaces/card";
import { Type } from '../src/enums/type';
@ -22,7 +22,7 @@ describe('Card Service', () => {
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);
expect(results).toHaveLength(totalCards);
});
it('should get a list of card supertypes', async () => {