Skip to content

Commit 7685d76

Browse files
committed
Don't test rehydration twice
1 parent 626592e commit 7685d76

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

extensions/ql-vscode/src/vscode-tests/no-workspace/remote-queries/variant-analysis-history.test.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -136,17 +136,6 @@ describe('Variant Analyses and QueryHistoryManager', function() {
136136
// Remove the first variant analysis
137137
await qhm.handleRemoveHistoryItem(qhm.treeDataProvider.allHistory[0]);
138138

139-
expect(removeVariantAnalysisStub).calledOnceWithExactly(rawQueryHistory[0].variantAnalysis);
140-
expect(rehydrateVariantAnalysisStub).to.have.callCount(2);
141-
142-
expect(rehydrateVariantAnalysisStub.getCall(0).args[0]).to.deep.eq(rawQueryHistory[0].variantAnalysis);
143-
expect(rehydrateVariantAnalysisStub.getCall(0).args[1]).to.deep.eq(rawQueryHistory[0].status);
144-
145-
expect(rehydrateVariantAnalysisStub.getCall(1).args[0]).to.deep.eq(rawQueryHistory[1].variantAnalysis);
146-
expect(rehydrateVariantAnalysisStub.getCall(1).args[1]).to.deep.eq(rawQueryHistory[1].status);
147-
148-
expect(qhm.treeDataProvider.allHistory).to.deep.eq(rawQueryHistory.slice(1));
149-
150139
// Add it back to the history
151140
qhm.addQuery(rawQueryHistory[0]);
152141
expect(removeVariantAnalysisStub).to.have.callCount(1);

0 commit comments

Comments
 (0)