File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -9,17 +9,15 @@ import * as assert from 'assert';
9
9
// You can import and use all API from the 'vscode' module
10
10
// as well as import your extension to test it
11
11
import * as vscode from 'vscode' ;
12
- import * as extension from '../src/InsertFile' ;
12
+ import * as fs from 'fs' ;
13
+ import { InsertFile } from '../src/InsertFile' ;
13
14
14
- let insert_file = new extension . InsertFile . InsertFileCommand ( "" ) ;
15
15
// Defines a Mocha test suite to group tests of similar kind together
16
16
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" ) ;
24
21
} ) ;
22
+
25
23
} ) ;
You can’t perform that action at this time.
0 commit comments