test: improve the code in test-process-hrtime
- use const instead of var
- use assert.strictEqual instead of assert.equal and plain assert
- use arrow functions
- swap assertions arguments to match the standard
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
test