test: modernize JS and tighten equality checking
Checklist
-
make -j4 test
(UNIX), orvcbuild test nosign
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
test
Description of change
Changed var --> const and let. Changed assert.equal --> assert.strictEqual Cleanup according to nodejs/code-and-learn#56