Skip to content

Commit

Permalink
fix(IT Wallet): [SIW-786] Fix CGN test (#5374)
Browse files Browse the repository at this point in the history
## Short description
This PR fixes a failing CGN test by implementing #5367. It must be
merged as soon as possible instead of waiting for a rebase.

## How to test
Static checks.
  • Loading branch information
LazyAfternoons authored Jan 4, 2024
1 parent 2cc658f commit 584aacd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ts/features/bonus/cgn/utils/__test__/dates.test.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import MockDate from "mockdate";
import { getCgnUserAgeRange } from "../dates";

describe("getCgnUserAgeRange", () => {
beforeAll(() => {
// eslint-disable-next-line functional/immutable-data
Date.now = jest.fn(() => new Date(Date.UTC(2022, 1, 1)).valueOf());
MockDate.set("2022-01-01");
});

it.each([
Expand Down

0 comments on commit 584aacd

Please sign in to comment.