Skip to content

Commit af46cf6

Browse files
Trottaddaleax
authored andcommitted
test: refactor test-fs-watch-stop-async
* 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]>
1 parent 6920d5c commit af46cf6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/parallel/test-fs-watch-stop-async.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
'use strict';
22
const common = require('../common');
3+
34
const assert = require('assert');
45
const fs = require('fs');
56

6-
const watch = fs.watchFile(__filename, common.noop);
7+
const watch = fs.watchFile(__filename, common.mustNotCall());
78
let triggered;
89
const listener = common.mustCall(() => {
910
triggered = true;

0 commit comments

Comments
 (0)