Skip to content

Commit 83291c5

Browse files
norascheuchelenatanasoiu
authored andcommitted
Add should handle click test
1 parent 3c870a1 commit 83291c5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,13 @@ describe('Variant Analyses and QueryHistoryManager', function() {
164164
});
165165
});
166166

167+
it('should handle a click', async () => {
168+
await qhm.readQueryHistory();
169+
170+
await qhm.handleItemClicked(qhm.treeDataProvider.allHistory[0], []);
171+
expect(openRemoteQueryResultsStub).calledOnceWithExactly(rawQueryHistory[0].historyItemId);
172+
});
173+
167174
async function copyHistoryState() {
168175
fs.ensureDirSync(STORAGE_DIR);
169176
fs.copySync(

0 commit comments

Comments
 (0)