Skip to content

Commit 82d7b17

Browse files
author
Matt Berther
committed
adding sync call to test setup
1 parent 0e50121 commit 82d7b17

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/simple.tests.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,17 +341,19 @@ describe('winston/transports/daily-rotate-file', function () {
341341
var transport;
342342
var rotationLogPath = path.join(fixturesDir, 'rotations');
343343

344-
beforeEach(function () {
344+
beforeEach(function (done) {
345345
this.time = new Date(dailyRotationPattern.start);
346346
tk.travel(this.time);
347347
rimraf.sync(rotationLogPath);
348-
mkdirp(rotationLogPath);
348+
mkdirp.sync(rotationLogPath);
349349
transport = new DailyRotateFile({
350350
filename: path.join(rotationLogPath, 'test-rotation.log'),
351351
datePattern: dailyRotationPattern.pattern,
352352
maxFiles: 2,
353353
maxsize: 100
354354
});
355+
356+
done();
355357
});
356358

357359
afterEach(function () {

0 commit comments

Comments
 (0)