Skip to content

Commit 3bb2961

Browse files
committed
Add file-config spec
1 parent 31a1065 commit 3bb2961

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

spec/include/file-config.spec.js

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

0 commit comments

Comments
 (0)