mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
test: ensure assertions are reached on more tests
PR-URL: https://github.com/nodejs/node/pull/60726 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
This commit is contained in:
1 parent
2409839f19
commit
ffebf8e55c
82 files changed
+853
-956
No files matched your search
@@ -7,9 +7,9 @@
|
||||
|
||||
require('../common');
|
||||
const { opendirSync } = require('node:fs');
|
||||
const { throws } = require('node:assert');
|
||||
const assert = require('node:assert');
|
||||
|
||||
throws(() => opendirSync('.', { encoding: 'no' }), {
|
||||
assert.throws(() => opendirSync('.', { encoding: 'no' }), {
|
||||
code: 'ERR_INVALID_ARG_VALUE',
|
||||
message: 'The argument \'encoding\' is invalid encoding. Received \'no\'',
|
||||
});
|
||||
Reference in new issue
Block a user