@@ -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
4848assert . 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
7575assert . 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
9494assert . 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
121121assert . 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