Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5aad0cc

Browse filesBrowse files
istinsonItalo A. Casas
authored andcommitted
test: no unused args test-fs-watch-file.js
PR-URL: #10758 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
1 parent fca0da7 commit 5aad0cc
Copy full SHA for 5aad0cc

File tree

Expand file treeCollapse file tree

1 file changed

+8
-8
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-8
lines changed
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: test/pummel/test-fs-watch-file.js
+8-8Lines changed: 8 additions & 8 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.