fix integration tests

This commit is contained in:
Johannes Rieken
2017-06-07 16:12:56 +02:00
parent 3e7f7fe1b7
commit 85a0a67ce5
4 changed files with 13 additions and 38 deletions

View File

@@ -7,11 +7,11 @@
import * as assert from 'assert';
import { workspace, window, Position, Range, commands, TextEditor, TextDocument, TextEditorCursorStyle, TextEditorLineNumbersStyle, SnippetString, Selection } from 'vscode';
import { createRandomFile, deleteFile, cleanUp } from './utils';
import { createRandomFile, deleteFile, closeAllEditors } from './utils';
suite('editor tests', () => {
teardown(cleanUp);
teardown(closeAllEditors);
function withRandomFileEditor(initialContents: string, run: (editor: TextEditor, doc: TextDocument) => Thenable<void>): Thenable<boolean> {
return createRandomFile(initialContents).then(file => {
@@ -194,7 +194,7 @@ suite('editor tests', () => {
(err) => {
assert.ok(true, 'edit with overlapping ranges should fail');
}
);
);
});
});
});