test: fix incorrect file mode check
mode & fs.constants.S_IROTH !== 0
is in fact equivalent to mode & (fs.constants.S_IROTH !== 0)
.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines