@@ -7,59 +7,59 @@ const options = 'test';
7
7
const unknownEncodingMessage = / ^ E r r o r : U n k n o w n e n c o d i n g : t e s t $ / ;
8
8
9
9
assert . throws ( ( ) => {
10
- fs . readFile ( 'path' , options , common . noop ) ;
10
+ fs . readFile ( 'path' , options , common . mustNotCall ( ) ) ;
11
11
} , unknownEncodingMessage ) ;
12
12
13
13
assert . throws ( ( ) => {
14
14
fs . readFileSync ( 'path' , options ) ;
15
15
} , unknownEncodingMessage ) ;
16
16
17
17
assert . throws ( ( ) => {
18
- fs . readdir ( 'path' , options , common . noop ) ;
18
+ fs . readdir ( 'path' , options , common . mustNotCall ( ) ) ;
19
19
} , unknownEncodingMessage ) ;
20
20
21
21
assert . throws ( ( ) => {
22
22
fs . readdirSync ( 'path' , options ) ;
23
23
} , unknownEncodingMessage ) ;
24
24
25
25
assert . throws ( ( ) => {
26
- fs . readlink ( 'path' , options , common . noop ) ;
26
+ fs . readlink ( 'path' , options , common . mustNotCall ( ) ) ;
27
27
} , unknownEncodingMessage ) ;
28
28
29
29
assert . throws ( ( ) => {
30
30
fs . readlinkSync ( 'path' , options ) ;
31
31
} , unknownEncodingMessage ) ;
32
32
33
33
assert . throws ( ( ) => {
34
- fs . writeFile ( 'path' , 'data' , options , common . noop ) ;
34
+ fs . writeFile ( 'path' , 'data' , options , common . mustNotCall ( ) ) ;
35
35
} , unknownEncodingMessage ) ;
36
36
37
37
assert . throws ( ( ) => {
38
38
fs . writeFileSync ( 'path' , 'data' , options ) ;
39
39
} , unknownEncodingMessage ) ;
40
40
41
41
assert . throws ( ( ) => {
42
- fs . appendFile ( 'path' , 'data' , options , common . noop ) ;
42
+ fs . appendFile ( 'path' , 'data' , options , common . mustNotCall ( ) ) ;
43
43
} , unknownEncodingMessage ) ;
44
44
45
45
assert . throws ( ( ) => {
46
46
fs . appendFileSync ( 'path' , 'data' , options ) ;
47
47
} , unknownEncodingMessage ) ;
48
48
49
49
assert . throws ( ( ) => {
50
- fs . watch ( 'path' , options , common . noop ) ;
50
+ fs . watch ( 'path' , options , common . mustNotCall ( ) ) ;
51
51
} , unknownEncodingMessage ) ;
52
52
53
53
assert . throws ( ( ) => {
54
- fs . realpath ( 'path' , options , common . noop ) ;
54
+ fs . realpath ( 'path' , options , common . mustNotCall ( ) ) ;
55
55
} , unknownEncodingMessage ) ;
56
56
57
57
assert . throws ( ( ) => {
58
58
fs . realpathSync ( 'path' , options ) ;
59
59
} , unknownEncodingMessage ) ;
60
60
61
61
assert . throws ( ( ) => {
62
- fs . mkdtemp ( 'path' , options , common . noop ) ;
62
+ fs . mkdtemp ( 'path' , options , common . mustNotCall ( ) ) ;
63
63
} , unknownEncodingMessage ) ;
64
64
65
65
assert . throws ( ( ) => {
0 commit comments