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: #13661
Reviewed-By: Refael Ackermann <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
  • Loading branch information
Trott authored and addaleax committed Jun 21, 2017
1 parent 6920d5c commit af46cf6
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 af46cf6

Please sign in to comment.