Skip to content

Commit 8dddd27

Browse files
committed
Provide the compare-perf callback in some tests
1 parent eceacae commit 8dddd27

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

extensions/ql-vscode/test/vscode-tests/no-workspace/query-history/history-tree-data-provider.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ describe("HistoryTreeDataProvider", () => {
3838
let app: App;
3939
let configListener: QueryHistoryConfigListener;
4040
const doCompareCallback = jest.fn();
41+
const doComparePerformanceCallback = jest.fn();
4142

4243
let queryHistoryManager: QueryHistoryManager;
4344

@@ -506,6 +507,7 @@ describe("HistoryTreeDataProvider", () => {
506507
}),
507508
languageContext,
508509
doCompareCallback,
510+
doComparePerformanceCallback,
509511
);
510512
(qhm.treeDataProvider as any).history = [...allHistory];
511513
await workspace.saveAll();

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ describe("QueryHistoryManager", () => {
4040
typeof variantAnalysisManagerStub.cancelVariantAnalysis
4141
>;
4242
const doCompareCallback = jest.fn();
43+
const doComparePerformanceCallback = jest.fn();
4344

4445
let executeCommand: jest.MockedFn<
4546
(commandName: string, ...args: any[]) => Promise<any>
@@ -939,6 +940,7 @@ describe("QueryHistoryManager", () => {
939940
}),
940941
new LanguageContextStore(mockApp),
941942
doCompareCallback,
943+
doComparePerformanceCallback,
942944
);
943945
(qhm.treeDataProvider as any).history = [...allHistory];
944946
await workspace.saveAll();

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ describe("Variant Analyses and QueryHistoryManager", () => {
105105
}),
106106
new LanguageContextStore(app),
107107
asyncNoop,
108+
asyncNoop,
108109
);
109110
disposables.push(qhm);
110111

0 commit comments

Comments
 (0)