@@ -86,14 +86,14 @@ fs.chmod(file1, mode_async.toString(8), common.mustCall((err) => {
86
86
if ( common . isWindows ) {
87
87
assert . ok ( ( fs . statSync ( file1 ) . mode & 0o777 ) & mode_async ) ;
88
88
} else {
89
- assert . strictEqual ( mode_async , fs . statSync ( file1 ) . mode & 0o777 ) ;
89
+ assert . strictEqual ( fs . statSync ( file1 ) . mode & 0o777 , mode_async ) ;
90
90
}
91
91
92
92
fs . chmodSync ( file1 , mode_sync ) ;
93
93
if ( common . isWindows ) {
94
94
assert . ok ( ( fs . statSync ( file1 ) . mode & 0o777 ) & mode_sync ) ;
95
95
} else {
96
- assert . strictEqual ( mode_sync , fs . statSync ( file1 ) . mode & 0o777 ) ;
96
+ assert . strictEqual ( fs . statSync ( file1 ) . mode & 0o777 , mode_sync ) ;
97
97
}
98
98
} ) ) ;
99
99
@@ -106,7 +106,7 @@ fs.open(file2, 'w', common.mustCall((err, fd) => {
106
106
if ( common . isWindows ) {
107
107
assert . ok ( ( fs . fstatSync ( fd ) . mode & 0o777 ) & mode_async ) ;
108
108
} else {
109
- assert . strictEqual ( mode_async , fs . fstatSync ( fd ) . mode & 0o777 ) ;
109
+ assert . strictEqual ( fs . fstatSync ( fd ) . mode & 0o777 , mode_async ) ;
110
110
}
111
111
112
112
common . expectsError (
@@ -123,7 +123,7 @@ fs.open(file2, 'w', common.mustCall((err, fd) => {
123
123
if ( common . isWindows ) {
124
124
assert . ok ( ( fs . fstatSync ( fd ) . mode & 0o777 ) & mode_sync ) ;
125
125
} else {
126
- assert . strictEqual ( mode_sync , fs . fstatSync ( fd ) . mode & 0o777 ) ;
126
+ assert . strictEqual ( fs . fstatSync ( fd ) . mode & 0o777 , mode_sync ) ;
127
127
}
128
128
129
129
fs . close ( fd , assert . ifError ) ;
@@ -139,10 +139,10 @@ if (fs.lchmod) {
139
139
fs . lchmod ( link , mode_async , common . mustCall ( ( err ) => {
140
140
assert . ifError ( err ) ;
141
141
142
- assert . strictEqual ( mode_async , fs . lstatSync ( link ) . mode & 0o777 ) ;
142
+ assert . strictEqual ( fs . lstatSync ( link ) . mode & 0o777 , mode_async ) ;
143
143
144
144
fs . lchmodSync ( link , mode_sync ) ;
145
- assert . strictEqual ( mode_sync , fs . lstatSync ( link ) . mode & 0o777 ) ;
145
+ assert . strictEqual ( fs . lstatSync ( link ) . mode & 0o777 , mode_sync ) ;
146
146
147
147
} ) ) ;
148
148
}
@@ -170,5 +170,5 @@ if (fs.lchmod) {
170
170
} ) ;
171
171
172
172
process . on ( 'exit' , function ( ) {
173
- assert . strictEqual ( 0 , openCount ) ;
173
+ assert . strictEqual ( openCount , 0 ) ;
174
174
} ) ;
0 commit comments