Skip to content

Commit

Permalink
Update hmrc tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sgb-io committed Apr 25, 2024
1 parent 552f868 commit 8cf4411
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/hmrc.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,23 @@ describe("getHmrcRates", () => {
});

test("It uses explicit 2022/23 rates", () => {
expect(getHmrcRates("2022/23").DEFAULT_PERSONAL_ALLOWANCE).toEqual(12570);
expect(
getHmrcRates({ taxYear: "2022/23", country: "England/NI/Wales" })
.DEFAULT_PERSONAL_ALLOWANCE
).toEqual(12570);
});

test("It uses explicit 2023/24 rates", () => {
expect(getHmrcRates("2023/24").DEFAULT_PERSONAL_ALLOWANCE).toEqual(12570);
expect(
getHmrcRates({ taxYear: "2023/24", country: "England/NI/Wales" })
.DEFAULT_PERSONAL_ALLOWANCE
).toEqual(12570);
});

test("It uses explicit 2024/25 rates", () => {
expect(getHmrcRates("2024/25").DEFAULT_PERSONAL_ALLOWANCE).toEqual(12570);
expect(
getHmrcRates({ taxYear: "2024/25", country: "England/NI/Wales" })
.DEFAULT_PERSONAL_ALLOWANCE
).toEqual(12570);
});
});

0 comments on commit 8cf4411

Please sign in to comment.