test: refactor and fix test-buffer-bytelength
Checklist
-
make -j8 test
(UNIX), orvcbuild test nosign
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
test, buffer
Description of change
- assert.equal -> assert.strictEqual.
- Fix incorrect use of string instead of RegExp in
throws
assertions.