Add formatted and linted files

This commit is contained in:
Tee
2021-03-15 23:23:06 -04:00
parent de16add8d1
commit 5755c744a3
20 changed files with 227 additions and 212 deletions

View File

@ -28,28 +28,28 @@ describe('Card Service', () => {
});
it('should get a list of card supertypes', async () => {
const expected: string[] = Object.values(Supertype);
const expected: Supertype[] = Object.values(Supertype);
const result: Supertype[] = await getSupertypes();
expect(expected.sort()).toEqual(result.sort());
});
it('should get a list of card subtypes', async () => {
const expected: string[] = Object.values(Subtype);
const expected: Subtype[] = Object.values(Subtype);
const result: Subtype[] = await getSubtypes();
expect(expected.sort()).toEqual(result.sort());
});
it('should get a list of card rarities', async () => {
const expected: string[] = Object.values(Rarity);
const expected: Rarity[] = Object.values(Rarity);
const result: Rarity[] = await getRarities();
expect(expected.sort()).toEqual(result.sort());
});
it('should get a list of card types', async () => {
const expected: string[] = Object.values(Type);
const expected: Type[] = Object.values(Type);
const result: Type[] = await getTypes();
expect(expected.sort()).toEqual(result.sort());