test: refactor test-child-process-exec-error
Checklist
-
make -j8 test
(UNIX), orvcbuild test nosign
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
test child_process
Description of change
- assert.equal() -> assert.strictEqual()
- regex -> .include()
- Change variable representing a function from
fun
to idiomaticfn
- var -> const