test: refactor test-crypto-binary-default
Checklist
-
make -j8 test
(UNIX), orvcbuild test nosign
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
test, crypto
Description of change
- var -> const.
- Group and sort imports.
- Correctly align function arguments.
- Fix incorrect use of string instead of RegExp in
throws
assertions. - assert.equal -> assert.strictEqual.
- Verify that callbacks are called with common.mustCall.