Combine afterEach calls

This commit is contained in:
Nora
2022-10-24 18:02:04 +02:00
committed by Elena Tanasoiu
parent 8521138bce
commit f313648ab7

View File

@@ -87,6 +87,8 @@ describe('Remote queries and query history manager', function() {
// set a higher timeout since recursive delete below may take a while, expecially on Windows.
this.timeout(120000);
deleteHistoryState();
disposables.dispose(testDisposeHandler);
sandbox.restore();
});
beforeEach(() => {
@@ -121,11 +123,6 @@ describe('Remote queries and query history manager', function() {
openTextDocumentSpy = sandbox.spy(workspace, 'openTextDocument');
});
afterEach(() => {
disposables.dispose(testDisposeHandler);
sandbox.restore();
});
it('should read query history', async () => {
await qhm.readQueryHistory();