Skip to content

Commit 9b676c9

Browse files
committed
Add test setup, roll back file config tests
1 parent ac3212e commit 9b676c9

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

spec/_setup.spec.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
const sinon = require('sinon');
2+
const chai = require('chai');
3+
4+
beforeEach(function () {
5+
this.sandbox = sinon.sandbox.create()
6+
});
7+
8+
afterEach(function () {
9+
this.sandbox.restore()
10+
});

spec/include/file-config.spec.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
const tempfile = require('tempfile');
2-
const config = require('./../../src/include/file-config');
3-
const expect = require('chai').expect;
4-
51
describe('The file config class', () => {
6-
it('it takes and stores the current working directory', () => {
7-
let workDir = tempfile(),
8-
Config = new config(workDir);
92

10-
expect(Config.workDir).to.equal(workDir);
11-
});
123
});

0 commit comments

Comments
 (0)