Skip to content

Commit 428014c

Browse files
Move timestamp constants to be outside of describe block
1 parent 9ed6b01 commit 428014c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

extensions/ql-vscode/test/vscode-tests/no-workspace/query-history/query-history-scrubber.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ import {
1414
} from "../../../../src/common/time";
1515
import { mockedObject } from "../../utils/mocking.helpers";
1616

17-
describe("query history scrubber", () => {
18-
const now = Date.now();
17+
const now = Date.now();
18+
// We don't want our times to align exactly with the hour,
19+
// so we can better mimic real life
20+
const LESS_THAN_ONE_DAY = ONE_DAY_IN_MS - 1000;
1921

22+
describe("query history scrubber", () => {
2023
let deregister: vscode.Disposable | undefined;
2124
let mockCtx: vscode.ExtensionContext;
2225
let runCount = 0;
2326

24-
// We don't want our times to align exactly with the hour,
25-
// so we can better mimic real life
26-
const LESS_THAN_ONE_DAY = ONE_DAY_IN_MS - 1000;
2727
const tmpDir = dirSync({
2828
unsafeCleanup: true,
2929
});

0 commit comments

Comments
 (0)