test: modernize JS in some test-fs-*.js
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines
Description
Replaced several variable initialization with spread / forEach / Object.assign(...Object.entries(obj).map()) .