File tree Expand file tree Collapse file tree 2 files changed +3
-18
lines changed Expand file tree Collapse file tree 2 files changed +3
-18
lines changed Original file line number Diff line number Diff line change 19
19
"codecov" : " 1.0.1" ,
20
20
"eslint" : " 3.8.1" ,
21
21
"istanbul" : " 0.4.5" ,
22
- "mocha" : " 3.1.2" ,
23
- "mock-fs" : " 3.12.0"
22
+ "mocha" : " 3.1.2"
24
23
},
25
24
"scripts" : {
26
25
"test" : " make lint && make coverage"
Original file line number Diff line number Diff line change 1
1
const assert = require ( 'assert' ) ;
2
2
const fs = require ( 'fs' ) ;
3
3
4
- const mock = require ( 'mock-fs' ) ;
5
-
6
4
const doxdox = require ( '../../lib/doxdox' ) ;
7
5
8
6
describe ( 'doxdox' , ( ) => {
@@ -14,16 +12,10 @@ describe('doxdox', () => {
14
12
15
13
} ) ;
16
14
17
- describe ( 'parseInput (with mock-fs)' , ( ) => {
18
-
19
- before ( ( ) => {
20
-
21
- mock ( ) ;
22
-
23
- } ) ;
15
+ describe ( 'fail to parseInput on missing file' , ( ) => {
24
16
25
17
it ( 'fails to parse input from invalid file' , ( ) =>
26
- doxdox . parseInput ( '' , { 'parser' : 'dox' } ) . catch ( err => {
18
+ doxdox . parseInput ( 'test.js ' , { 'parser' : 'dox' } ) . catch ( err => {
27
19
28
20
if ( err ) {
29
21
@@ -33,12 +25,6 @@ describe('doxdox', () => {
33
25
34
26
} ) ) ;
35
27
36
- after ( ( ) => {
37
-
38
- mock . restore ( ) ;
39
-
40
- } ) ;
41
-
42
28
} ) ;
43
29
44
30
describe ( 'parseInputs' , ( ) => {
You can’t perform that action at this time.
0 commit comments