Skip to content

test: refactored test-crypto-random.js

Checklist
  • make -j4 test (UNIX), or vcbuild test nosign (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

Test

Description of change

Replaced var by const for constant variables, enforced strict equality check, and replaced custom callback execution check by common.mustCall.

Part of https://github.com/nodejs/code-and-learn/issues/56

Signed-off-by: Tobias Kahse tobias.kahse@hpe.com

Merge request reports

Loading