Skip to content

Commit 551ed95

Browse files
committed
Remove as unknown as QueryHistoryManager
1 parent 9b1ca51 commit 551ed95

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {
1212
THREE_HOURS_IN_MS,
1313
TWO_HOURS_IN_MS,
1414
} from "../../../../src/pure/time";
15+
import { mockedObject } from "../../utils/mocking.helpers";
1516

1617
describe("query history scrubber", () => {
1718
const now = Date.now();
@@ -181,11 +182,11 @@ describe("query history scrubber", () => {
181182
TWO_HOURS_IN_MS,
182183
LESS_THAN_ONE_DAY,
183184
dir,
184-
{
185+
mockedObject<QueryHistoryManager>({
185186
removeDeletedQueries: () => {
186187
return Promise.resolve();
187188
},
188-
} as QueryHistoryManager,
189+
}),
189190
mockCtx,
190191
{
191192
increment: () => runCount++,

0 commit comments

Comments
 (0)