test: cleanup IIFE tests
Checklist
-
make -j4 test
(UNIX), orvcbuild test nosign
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
test
Description of change
A number of test files use IIFEs to separate distinct tests from each other in the same file. The project has been moving toward using block scopes and let
/const
in favor of IIFEs. This commit moves IIFE tests to block scopes. Some additional cleanup of these tests such as the use of assert.strictEqual()
and common.mustCall()
is also included.
R= @nodejs/testing