Skip to content

Commit

Permalink
Merge pull request #133 from mikenichols/fix-lint-errors
Browse files Browse the repository at this point in the history
Change formatting to fix lint errors
  • Loading branch information
mikenichols authored Jan 13, 2025
2 parents b67c9b7 + 34042d6 commit ecc6d12
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/__tests__/expiration-year.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,19 +76,18 @@ describe("expirationYear", () => {

describe("given a 1 digit string", () => {
describe("that's not a number", () => {
test.each(
["a", "#", ";", "\\", "+"]
)("%p is invalid", (value) => {
test.each(["a", "#", ";", "\\", "+"])("%p is invalid", (value) => {
expect(expirationYear(value)).toEqual(INVALID);
});
});

describe("that is a number", () => {
test.each(
["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
)("%p is potentially valid", (value) => {
expect(expirationYear(value)).toEqual(POTENTIALLY_VALID);
});
test.each(["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"])(
"%p is potentially valid",
(value) => {
expect(expirationYear(value)).toEqual(POTENTIALLY_VALID);
},
);
});
});

Expand Down Expand Up @@ -144,11 +143,12 @@ describe("expirationYear", () => {
});

describe("given a more than 4 digit string", () => {
test.each(
["00000", "12345", "20021", "20202", "20211", "30000", "99999"]
)("%p is invalid", (value) => {
expect(expirationYear(value)).toEqual(INVALID);
});
test.each(["00000", "12345", "20021", "20202", "20211", "30000", "99999"])(
"%p is invalid",
(value) => {
expect(expirationYear(value)).toEqual(INVALID);
},
);
});

describe("given a custom max elapsed year", () => {
Expand Down

0 comments on commit ecc6d12

Please sign in to comment.