Skip to content

Commit 1da837b

Browse files
committed
fix (test): no need to pass and call done()
1 parent ec4b0fa commit 1da837b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/test-config.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,14 @@ let parseStub
1313

1414
t.plan(13)
1515

16-
t.beforeEach(done => {
16+
t.beforeEach(() => {
1717
readFileSyncStub = sinon.stub(fs, 'readFileSync').returns('test=foo')
1818
parseStub = sinon.stub(dotenv, 'parse').returns(mockParseResponse)
19-
done()
2019
})
2120

22-
t.afterEach(done => {
21+
t.afterEach(() => {
2322
readFileSyncStub.restore()
2423
parseStub.restore()
25-
done()
2624
})
2725

2826
t.test('takes option for path', ct => {

0 commit comments

Comments
 (0)