Combine afterEach calls
This commit is contained in:
@@ -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.
|
// set a higher timeout since recursive delete below may take a while, expecially on Windows.
|
||||||
this.timeout(120000);
|
this.timeout(120000);
|
||||||
deleteHistoryState();
|
deleteHistoryState();
|
||||||
|
disposables.dispose(testDisposeHandler);
|
||||||
|
sandbox.restore();
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
@@ -121,11 +123,6 @@ describe('Remote queries and query history manager', function() {
|
|||||||
openTextDocumentSpy = sandbox.spy(workspace, 'openTextDocument');
|
openTextDocumentSpy = sandbox.spy(workspace, 'openTextDocument');
|
||||||
});
|
});
|
||||||
|
|
||||||
afterEach(() => {
|
|
||||||
disposables.dispose(testDisposeHandler);
|
|
||||||
sandbox.restore();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should read query history', async () => {
|
it('should read query history', async () => {
|
||||||
await qhm.readQueryHistory();
|
await qhm.readQueryHistory();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user