Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
  • Loading branch information
Trott committed Jun 13, 2017
commit 60759de3d4126121c79f2dfe0cec5050ae1d91ad
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