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 96fe7fe
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import {rootPath} from "get-root-path";
import {EOL} from "os";
import { availableProviders, match } from './provider.js'

Check warning on line 2 in src/index.js

View workflow job for this annotation

GitHub Actions / Lint and test project (18)

Expected 'multiple' syntax before 'single' syntax

Check warning on line 2 in src/index.js

View workflow job for this annotation

GitHub Actions / Lint and test project (latest)

Expected 'multiple' syntax before 'single' syntax
import {AnalysisReport} from '../generated/backend/AnalysisReport.js'
import analysis from './analysis.js'
Expand Down
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 96fe7fe

Please sign in to comment.