api tests: cleanup after test run

This commit is contained in:
Benjamin Pasero
2015-11-25 10:28:53 +01:00
parent b7b97fd8ee
commit e5d7c7a919
4 changed files with 33 additions and 12 deletions

View File

@@ -8,9 +8,14 @@
import * as assert from 'assert';
import {workspace, window} from 'vscode';
import {join} from 'path';
import {cleanUp} from './utils';
suite("window namespace tests", () => {
teardown((done) => {
cleanUp().then(() => done(), (error) => done(error));
});
test('active text editor', (done) => {
workspace.openTextDocument(join(workspace.rootPath, './far.js')).then(doc => {
return window.showTextDocument(doc).then((editor) => {