aboutsummaryrefslogtreecommitdiff
path: root/test/pummel/test-fs-watch-file.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/pummel/test-fs-watch-file.js')
-rw-r--r--test/pummel/test-fs-watch-file.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/pummel/test-fs-watch-file.js b/test/pummel/test-fs-watch-file.js
index 62abf0c18f..e9d208778f 100644
--- a/test/pummel/test-fs-watch-file.js
+++ b/test/pummel/test-fs-watch-file.js
@@ -68,6 +68,7 @@ assert.throws(
}
);
+// Does not throw.
fs.watchFile(filepathOne, function() {
fs.unwatchFile(filepathOne);
++watchSeenOne;
@@ -91,7 +92,7 @@ assert.throws(
}
);
-{
+{ // Does not throw.
function a() {
fs.unwatchFile(filepathTwo, a);
++watchSeenTwo;
@@ -108,7 +109,7 @@ setTimeout(function() {
fs.writeFileSync(filepathTwoAbs, 'pardner');
}, 1000);
-{
+{ // Does not throw.
function b() {
fs.unwatchFile(filenameThree, b);
++watchSeenThree;
@@ -130,7 +131,7 @@ setTimeout(function() {
fs.writeFileSync(filenameFour, 'hey');
}, 500);
-{
+{ // Does not throw.
function a() {
++watchSeenFour;
assert.strictEqual(1, watchSeenFour);