Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
glacials committed Apr 19, 2024
1 parent 5d0183a commit d28e9b1
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions web/test/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ describe("API", () => {
expect(body.sets).to.have.length.above(8);
});

body.sets.forEach((set: any) => {
body.sets.forEach((set) => {
describe(set.name, () => {
describe("name", () => {
const name = set.name;
Expand Down Expand Up @@ -201,7 +201,7 @@ describe("API", () => {
});
});

body.bans.forEach((ban: any) => {
body.bans.forEach((ban) => {
describe(ban.card_name, () => {
describe("card name", () => {
const cardName = ban.card_name;
Expand Down Expand Up @@ -235,7 +235,7 @@ describe("API", () => {
const setCode = ban.set_code;

it("should be in the sets array", () => {
const validCodes = new Set(body.sets.map((set: any) => set.code));
const validCodes = new Set(body.sets.map((set) => set.code));

expect(setCode).to.be.oneOf([...validCodes]);
});
Expand Down Expand Up @@ -264,9 +264,7 @@ describe("API", () => {
// Old bans are grandparented in
if (
new Date(
body.sets.find(
(set: any) => set.code === ban.set_code
).enter_date
body.sets.find((set) => set.code === ban.set_code).enter_date
) > new Date("2023-07-02T00:00:00.000Z")
) {
it("should start with 'Banned to'", () => {
Expand Down

0 comments on commit d28e9b1

Please sign in to comment.