Skip to content

Commit 6de3a6e

Browse files
committed
test(watcher.js): Add assertion on logger.write call count
1 parent 502ff4f commit 6de3a6e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/watcher.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ group('chokidar', (beforeEach, test, group) => {
211211
});
212212

213213
test('starts running the initial tests', t => {
214-
t.plan(8);
214+
t.plan(10);
215215

216216
let done;
217217
api.run.returns(new Promise(resolve => {
@@ -224,6 +224,7 @@ group('chokidar', (beforeEach, test, group) => {
224224
t.ok(logger.clear.notCalled);
225225
t.ok(logger.reset.notCalled);
226226
t.ok(logger.start.notCalled);
227+
t.ok(logger.write.notCalled);
227228
t.ok(api.run.calledOnce);
228229
t.strictDeepEqual(api.run.firstCall.args, [files, defaultApiOptions]);
229230

@@ -233,6 +234,7 @@ group('chokidar', (beforeEach, test, group) => {
233234
return delay().then(() => {
234235
t.ok(logger.finish.calledOnce);
235236
t.is(logger.finish.firstCall.args[0], runStatus);
237+
t.ok(logger.write.calledOnce);
236238
});
237239
});
238240

0 commit comments

Comments
 (0)