File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -44,21 +44,21 @@ const fs = require('fs');
44
44
45
45
// Check for mode values range
46
46
const modeUpperBoundaryValue = 0o777 ;
47
- common . mustCall ( ( ) => fs . fchmod ( 1 , modeUpperBoundaryValue ) ) ;
48
- common . mustCall ( ( ) => fs . fchmodSync ( 1 , modeUpperBoundaryValue ) ) ;
47
+ fs . fchmod ( 1 , modeUpperBoundaryValue ) ;
48
+ fs . fchmodSync ( 1 , modeUpperBoundaryValue ) ;
49
49
50
50
// umask of 0o777 is equal to 775
51
51
const modeOutsideUpperBoundValue = 776 ;
52
52
common . expectsError (
53
- ( ) => fs . fchmod ( 1 , i ) ,
53
+ ( ) => fs . fchmod ( 1 , modeOutsideUpperBoundValue ) ,
54
54
{
55
55
code : 'ERR_OUT_OF_RANGE' ,
56
56
type : RangeError ,
57
57
message : 'The value of "mode" is out of range.'
58
58
}
59
59
) ;
60
60
common . expectsError (
61
- ( ) => fs . fchmodSync ( 1 , i ) ,
61
+ ( ) => fs . fchmodSync ( 1 , modeOutsideUpperBoundValue ) ,
62
62
{
63
63
code : 'ERR_OUT_OF_RANGE' ,
64
64
type : RangeError ,
You can’t perform that action at this time.
0 commit comments