@@ -41,13 +41,13 @@ assert.throws(
41
41
fs . watchFile ( filepathOne ) ;
42
42
} ,
43
43
function ( e ) {
44
- return e . message === 'watchFile requires a listener function' ;
44
+ return e . message === '" watchFile()" requires a listener function' ;
45
45
}
46
46
) ;
47
47
48
48
assert . doesNotThrow (
49
49
function ( ) {
50
- fs . watchFile ( filepathOne , function ( curr , prev ) {
50
+ fs . watchFile ( filepathOne , function ( ) {
51
51
fs . unwatchFile ( filepathOne ) ;
52
52
++ watchSeenOne ;
53
53
} ) ;
@@ -68,17 +68,17 @@ assert.throws(
68
68
fs . watchFile ( filepathTwo ) ;
69
69
} ,
70
70
function ( e ) {
71
- return e . message === 'watchFile requires a listener function' ;
71
+ return e . message === '" watchFile()" requires a listener function' ;
72
72
}
73
73
) ;
74
74
75
75
assert . doesNotThrow (
76
76
function ( ) {
77
- function a ( curr , prev ) {
77
+ function a ( ) {
78
78
fs . unwatchFile ( filepathTwo , a ) ;
79
79
++ watchSeenTwo ;
80
80
}
81
- function b ( curr , prev ) {
81
+ function b ( ) {
82
82
fs . unwatchFile ( filepathTwo , b ) ;
83
83
++ watchSeenTwo ;
84
84
}
@@ -93,10 +93,10 @@ setTimeout(function() {
93
93
94
94
assert . doesNotThrow (
95
95
function ( ) {
96
- function a ( curr , prev ) {
96
+ function a ( ) {
97
97
assert . ok ( 0 ) ; // should not run
98
98
}
99
- function b ( curr , prev ) {
99
+ function b ( ) {
100
100
fs . unwatchFile ( filenameThree , b ) ;
101
101
++ watchSeenThree ;
102
102
}
@@ -120,7 +120,7 @@ setTimeout(function() {
120
120
121
121
assert . doesNotThrow (
122
122
function ( ) {
123
- function a ( curr , prev ) {
123
+ function a ( ) {
124
124
++ watchSeenFour ;
125
125
assert . equal ( 1 , watchSeenFour ) ;
126
126
fs . unwatchFile ( '.' + path . sep + filenameFour , a ) ;
0 commit comments