Skip to content

Commit

Permalink
only fake the date class instead of all sub timers like next tick
Browse files Browse the repository at this point in the history
  • Loading branch information
chaitanyapotti committed Oct 21, 2024
1 parent 21272f3 commit a39debf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/testnet.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ describe("torus utils migrated testnet on sapphire", function () {
});

it("should pass at get pub nonce when system time is incorrect", async function () {
const clock = useFakeTimers();
const clock = useFakeTimers({ toFake: ["Date"] });
const fakeTime = new Date("2023-05-05T12:00:00").getTime();

// Mock the system clock time to be a specific time
Expand Down

0 comments on commit a39debf

Please sign in to comment.