Skip to content

Commit ec9efad

Browse files
Ecmel ErcanEcmel Ercan
authored andcommitted
Typescript 2.0
1 parent d1ce121 commit ec9efad

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

test/extension.test.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,8 @@ import * as myExtension from '../src/extension';
1515
suite("Extension Tests", () => {
1616

1717
// Defines a Mocha unit test
18-
test("html", () => {
19-
let uri = vscode.Uri.parse('file:///' + vscode.workspace.rootPath + '/test.html');
20-
vscode.workspace.openTextDocument(uri).then(function (doc: vscode.TextDocument) {
21-
assert.equal('test.html', doc.fileName);
22-
});
18+
test("Something 1", () => {
19+
assert.equal(-1, [1, 2, 3].indexOf(5));
20+
assert.equal(-1, [1, 2, 3].indexOf(0));
2321
});
2422
});

test/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ var testRunner = require('vscode/lib/testrunner');
1515
// You can directly control Mocha options by uncommenting the following lines
1616
// See https://github.com/mochajs/mocha/wiki/Using-mocha-programmatically#set-options for more info
1717
testRunner.configure({
18-
ui: 'tdd', // the TDD UI is being used in extension.test.ts (suite, test, etc.)
19-
useColors: true // colored output from test results
18+
ui: 'tdd', // the TDD UI is being used in extension.test.ts (suite, test, etc.)
19+
useColors: true // colored output from test results
2020
});
2121

2222
module.exports = testRunner;

0 commit comments

Comments
 (0)