fix tests

This commit is contained in:
Benjamin Pasero 2017-10-04 18:04:10 +02:00
parent a2efac20cd
commit 722ad8026a

View file

@ -97,7 +97,7 @@ suite('workspace-namespace', () => {
});
});
test('openTextDocument, untitled closes on save', function (done) {
test('openTextDocument, untitled closes on save', function () {
const path = join(vscode.workspace.rootPath || '', './newfile.txt');
return vscode.workspace.openTextDocument(vscode.Uri.parse('untitled:' + path)).then(doc => {
@ -115,7 +115,7 @@ suite('workspace-namespace', () => {
d0.dispose();
return deleteFile(vscode.Uri.file(join(vscode.workspace.rootPath || '', './newfile.txt'))).then(() => done(null));
return deleteFile(vscode.Uri.file(join(vscode.workspace.rootPath || '', './newfile.txt')));
});
});