test: use spread object
Object.assign()
can be replaced by spread objects { ... }
Refs: https://eslint.org/docs/rules/prefer-object-spread
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