We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbd3c80 commit d1080f8Copy full SHA for d1080f8
test/parallel/test-internal-errors.js
@@ -236,6 +236,15 @@ assert.throws(
236
message: /^At least one arg needs to be specified$/
237
}));
238
239
+// Test ERR_ENCODING_NOT_SUPPORTED
240
+assert.strictEqual(
241
+ errors.message('ERR_ENCODING_NOT_SUPPORTED', ['enc']),
242
+ 'The "enc" encoding is not supported');
243
+
244
+// Test ERR_HTTP2_HEADER_REQUIRED
245
246
+ errors.message('ERR_HTTP2_HEADER_REQUIRED', ['test']),
247
+ 'The test header is required');
248
249
// Test that `code` property is mutable and that changing it does not change the
250
// name.
0 commit comments