summaryrefslogtreecommitdiff
path: root/test/parallel/test-buffer-slow.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-buffer-slow.js')
-rw-r--r--test/parallel/test-buffer-slow.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-buffer-slow.js b/test/parallel/test-buffer-slow.js
index c9f5f17841..1dbc217bda 100644
--- a/test/parallel/test-buffer-slow.js
+++ b/test/parallel/test-buffer-slow.js
@@ -42,7 +42,7 @@ try {
// Should throw with invalid length type
const bufferInvalidTypeMsg = {
code: 'ERR_INVALID_ARG_TYPE',
- name: 'TypeError [ERR_INVALID_ARG_TYPE]',
+ name: 'TypeError',
message: /^The "size" argument must be of type number/,
};
assert.throws(() => SlowBuffer(), bufferInvalidTypeMsg);
@@ -53,7 +53,7 @@ assert.throws(() => SlowBuffer(true), bufferInvalidTypeMsg);
// Should throw with invalid length value
const bufferMaxSizeMsg = {
code: 'ERR_INVALID_OPT_VALUE',
- name: 'RangeError [ERR_INVALID_OPT_VALUE]',
+ name: 'RangeError',
message: /^The value "[^"]*" is invalid for option "size"$/
};
assert.throws(() => SlowBuffer(NaN), bufferMaxSizeMsg);