mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 02:58:56 +01:00
api tests: cleanup after test run
This commit is contained in:
@@ -9,11 +9,15 @@ import * as assert from 'assert';
|
||||
import * as fs from 'fs';
|
||||
import * as os from 'os';
|
||||
import {workspace, window, Position} from 'vscode';
|
||||
import {createRandomFile, deleteFile} from './utils';
|
||||
import {createRandomFile, deleteFile, cleanUp} from './utils';
|
||||
import {join} from 'path';
|
||||
|
||||
suite("editor tests", () => {
|
||||
|
||||
teardown((done) => {
|
||||
cleanUp().then(() => done(), (error) => done(error));
|
||||
});
|
||||
|
||||
test('make edit', (done) => {
|
||||
createRandomFile().then(file => {
|
||||
return workspace.openTextDocument(file).then(doc => {
|
||||
|
||||
Reference in New Issue
Block a user