Skip to content

Commit fb70382

Browse files
Fix tests to not reference deleted command
1 parent f49314f commit fb70382

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ describe("QueryHistoryManager", () => {
8686
onVariantAnalysisRemoved: jest.fn(),
8787
removeVariantAnalysis: jest.fn(),
8888
cancelVariantAnalysis: jest.fn(),
89+
exportResults: jest.fn(),
8990
showView: jest.fn(),
9091
} as any as VariantAnalysisManager;
9192

@@ -862,16 +863,15 @@ describe("QueryHistoryManager", () => {
862863
const item = localQueryHistory[4];
863864
await queryHistoryManager.handleExportResults(item, [item]);
864865

865-
expect(executeCommandSpy).not.toBeCalled();
866+
expect(variantAnalysisManagerStub.exportResults).not.toBeCalled();
866867
});
867868

868869
it("should export results for a single variant analysis", async () => {
869870
queryHistoryManager = await createMockQueryHistory(allHistory);
870871

871872
const item = variantAnalysisHistory[1];
872873
await queryHistoryManager.handleExportResults(item, [item]);
873-
expect(executeCommandSpy).toBeCalledWith(
874-
"codeQL.exportVariantAnalysisResults",
874+
expect(variantAnalysisManagerStub.exportResults).toBeCalledWith(
875875
item.variantAnalysis.id,
876876
);
877877
});
@@ -882,7 +882,7 @@ describe("QueryHistoryManager", () => {
882882
const item1 = variantAnalysisHistory[1];
883883
const item2 = variantAnalysisHistory[3];
884884
await queryHistoryManager.handleExportResults(item1, [item1, item2]);
885-
expect(executeCommandSpy).not.toBeCalled();
885+
expect(variantAnalysisManagerStub.exportResults).not.toBeCalled();
886886
});
887887
});
888888

0 commit comments

Comments
 (0)