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‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
'use strict';
22
constcommon=require('../common');
3+
34
constassert=require('assert');
45
constfs=require('fs');
56

6-
constwatch=fs.watchFile(__filename,common.noop);
7+
constwatch=fs.watchFile(__filename,common.mustNotCall());
78
lettriggered;
89
constlistener=common.mustCall(()=>{
910
triggered=true;

0 commit comments

Comments
(0)