Skip to content

Commit 1d83d23

Browse files
committed
Removed mock-js dependency.
1 parent 0eaca7e commit 1d83d23

File tree

2 files changed

+3
-18
lines changed

2 files changed

+3
-18
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@
1919
"codecov": "1.0.1",
2020
"eslint": "3.8.1",
2121
"istanbul": "0.4.5",
22-
"mocha": "3.1.2",
23-
"mock-fs": "3.12.0"
22+
"mocha": "3.1.2"
2423
},
2524
"scripts": {
2625
"test": "make lint && make coverage"

test/specs/doxdox.js

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
const assert = require('assert');
22
const fs = require('fs');
33

4-
const mock = require('mock-fs');
5-
64
const doxdox = require('../../lib/doxdox');
75

86
describe('doxdox', () => {
@@ -14,16 +12,10 @@ describe('doxdox', () => {
1412

1513
});
1614

17-
describe('parseInput (with mock-fs)', () => {
18-
19-
before(() => {
20-
21-
mock();
22-
23-
});
15+
describe('fail to parseInput on missing file', () => {
2416

2517
it('fails to parse input from invalid file', () =>
26-
doxdox.parseInput('', {'parser': 'dox'}).catch(err => {
18+
doxdox.parseInput('test.js', {'parser': 'dox'}).catch(err => {
2719

2820
if (err) {
2921

@@ -33,12 +25,6 @@ describe('doxdox', () => {
3325

3426
}));
3527

36-
after(() => {
37-
38-
mock.restore();
39-
40-
});
41-
4228
});
4329

4430
describe('parseInputs', () => {

0 commit comments

Comments
 (0)