Add should handle click test

This commit is contained in:
Nora
2022-10-25 14:34:44 +02:00
committed by Elena Tanasoiu
parent 3c870a10e2
commit 83291c5ceb

View File

@@ -164,6 +164,13 @@ describe('Variant Analyses and QueryHistoryManager', function() {
});
});
it('should handle a click', async () => {
await qhm.readQueryHistory();
await qhm.handleItemClicked(qhm.treeDataProvider.allHistory[0], []);
expect(openRemoteQueryResultsStub).calledOnceWithExactly(rawQueryHistory[0].historyItemId);
});
async function copyHistoryState() {
fs.ensureDirSync(STORAGE_DIR);
fs.copySync(