Skip to content

Commit 0e50121

Browse files
author
Matt Berther
committed
adding call to done() in beforeEach
1 parent a07b820 commit 0e50121

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/simple.tests.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ describe('winston/transports/daily-rotate-file', function () {
268268
var transport;
269269
var rotationLogPath = path.join(fixturesDir, 'rotations');
270270

271-
beforeEach(function () {
271+
beforeEach(function (done) {
272272
this.time = new Date(patterns[pattern].start);
273273
tk.travel(this.time);
274274
rimraf.sync(rotationLogPath);
@@ -277,6 +277,8 @@ describe('winston/transports/daily-rotate-file', function () {
277277
filename: path.join(rotationLogPath, 'test-rotation.log'),
278278
datePattern: patterns[pattern].pattern
279279
});
280+
281+
done();
280282
});
281283

282284
afterEach(function () {

0 commit comments

Comments
 (0)