From f462ad1f35dfb2e8827e383d46ba74058aedfcbc Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Tue, 13 Jun 2017 09:51:38 -0700 Subject: [PATCH] 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: https://github.com/nodejs/node/pull/13661 Reviewed-By: Refael Ackermann Reviewed-By: Richard Lau Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: Luigi Pinca --- test/parallel/test-fs-watch-stop-async.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/parallel/test-fs-watch-stop-async.js b/test/parallel/test-fs-watch-stop-async.js index 6716f1fcb2f83b..61db2a300f983b 100644 --- a/test/parallel/test-fs-watch-stop-async.js +++ b/test/parallel/test-fs-watch-stop-async.js @@ -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;