test: refactor common.js
Checklist
-
make -j8 test
(UNIX), orvcbuild test nosign
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
test
Description of change
- remove unused common.faketimeCli
- remove mosly-unused common.testDir
- assert.ok(false...) -> fail()
- alphabetize list of known globals
- .indexOf() -> .includes()
/cc @nodejs/testing