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:
Antoine du Hamel authored and RafaelGSS committed 2026-01-13 10:04:17 -03:00
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\'',
});