Skip to content

Commit 2eb0c25

Browse files
istinsonMylesBorins
authored andcommitted
test: no unused args test-fs-watch-file.js
PR-URL: #10758 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
1 parent 2f026f6 commit 2eb0c25

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

test/pummel/test-fs-watch-file.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ assert.throws(
4141
fs.watchFile(filepathOne);
4242
},
4343
function(e) {
44-
return e.message === 'watchFile requires a listener function';
44+
return e.message === '"watchFile()" requires a listener function';
4545
}
4646
);
4747

4848
assert.doesNotThrow(
4949
function() {
50-
fs.watchFile(filepathOne, function(curr, prev) {
50+
fs.watchFile(filepathOne, function() {
5151
fs.unwatchFile(filepathOne);
5252
++watchSeenOne;
5353
});
@@ -68,17 +68,17 @@ assert.throws(
6868
fs.watchFile(filepathTwo);
6969
},
7070
function(e) {
71-
return e.message === 'watchFile requires a listener function';
71+
return e.message === '"watchFile()" requires a listener function';
7272
}
7373
);
7474

7575
assert.doesNotThrow(
7676
function() {
77-
function a(curr, prev) {
77+
function a() {
7878
fs.unwatchFile(filepathTwo, a);
7979
++watchSeenTwo;
8080
}
81-
function b(curr, prev) {
81+
function b() {
8282
fs.unwatchFile(filepathTwo, b);
8383
++watchSeenTwo;
8484
}
@@ -93,10 +93,10 @@ setTimeout(function() {
9393

9494
assert.doesNotThrow(
9595
function() {
96-
function a(curr, prev) {
96+
function a() {
9797
assert.ok(0); // should not run
9898
}
99-
function b(curr, prev) {
99+
function b() {
100100
fs.unwatchFile(filenameThree, b);
101101
++watchSeenThree;
102102
}
@@ -120,7 +120,7 @@ setTimeout(function() {
120120

121121
assert.doesNotThrow(
122122
function() {
123-
function a(curr, prev) {
123+
function a() {
124124
++watchSeenFour;
125125
assert.equal(1, watchSeenFour);
126126
fs.unwatchFile('.' + path.sep + filenameFour, a);

0 commit comments

Comments
 (0)