test: refactor test assertions and comments in napi tests
Change assert.ok()
to assert.notStrictEquals()
where appropriate and change some functions to arrow functions.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines