Skip to content

Commit

Permalink
test: use a more portable format for fake timestamp for npm tests
Browse files Browse the repository at this point in the history
Signed-off-by: Zvi Grinberg <[email protected]>
  • Loading branch information
zvigrinberg committed Sep 7, 2023
1 parent 9561e40 commit ac5a552
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/providers/javascript_npm.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@ suite('testing the javascript-npm data provider', () => {
})


}).beforeAll(() => clock = sinon.useFakeTimers(new Date(2023,7,7))).afterAll(()=> clock.restore());
}).beforeAll(() => clock = sinon.useFakeTimers(new Date('2023-08-07T00:00:00.000Z'))).afterAll(()=> clock.restore());

0 comments on commit ac5a552

Please sign in to comment.