Skip to content

Commit 9f930b1

Browse files
committed
clear test code.
1 parent 874ab24 commit 9f930b1

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

test/extension.test.ts

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,15 @@ import * as assert from 'assert';
99
// You can import and use all API from the 'vscode' module
1010
// as well as import your extension to test it
1111
import * as vscode from 'vscode';
12-
import * as extension from '../src/InsertFile';
12+
import * as fs from 'fs';
13+
import {InsertFile} from '../src/InsertFile';
1314

14-
let insert_file = new extension.InsertFile.InsertFileCommand("");
1515
// Defines a Mocha test suite to group tests of similar kind together
1616
suite("Extension Tests", () => {
17-
//insert_file.showFileDialog();
18-
19-
// Defines a Mocha unit test
20-
test("Something 1", () => {
21-
insert_file.showFileDialog();
22-
assert.equal(-1, [1, 2, 3].indexOf(5));
23-
assert.equal(-1, [1, 2, 3].indexOf(0));
17+
var command = new InsertFile.InsertFileCommand();
18+
19+
suiteSetup(() => {
20+
fs.writeFileSync("C:\\Users\\hayamizu\\test.txt","hello");
2421
});
22+
2523
});

0 commit comments

Comments
 (0)