Skip to content

Commit

Permalink
test: refactor test-fs-watch-stop-async
Browse files Browse the repository at this point in the history
* use common.mustNotCall() to confirm callback is not invoked
* blank line after common module per test writing guide

PR-URL: nodejs#13661
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
Trott committed Jun 15, 2017
1 parent 14f5a9b commit f462ad1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/parallel/test-fs-watch-stop-async.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
'use strict';
const common = require('../common');

const assert = require('assert');
const fs = require('fs');

const watch = fs.watchFile(__filename, common.noop);
const watch = fs.watchFile(__filename, common.mustNotCall());
let triggered;
const listener = common.mustCall(() => {
triggered = true;
Expand Down

0 comments on commit f462ad1

Please sign in to comment.