aboutsummaryrefslogtreecommitdiff
path: root/test/parallel/test-buffer-concat.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-buffer-concat.js')
-rw-r--r--test/parallel/test-buffer-concat.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-buffer-concat.js b/test/parallel/test-buffer-concat.js
index 7ef5b9cd35..6be3a39fa0 100644
--- a/test/parallel/test-buffer-concat.js
+++ b/test/parallel/test-buffer-concat.js
@@ -59,7 +59,7 @@ assert.strictEqual(flatLongLen.toString(), check);
Buffer.concat(value);
}, {
code: 'ERR_INVALID_ARG_TYPE',
- message: 'The "list[0]" argument must be one of type Array, Buffer, ' +
+ message: 'The "list[0]" argument must be one of type Buffer ' +
`or Uint8Array. Received type ${typeof value[0]}`
});
});
@@ -68,7 +68,7 @@ assert.throws(() => {
Buffer.concat([Buffer.from('hello'), 3]);
}, {
code: 'ERR_INVALID_ARG_TYPE',
- message: 'The "list[1]" argument must be one of type Array, Buffer, ' +
+ message: 'The "list[1]" argument must be one of type Buffer ' +
'or Uint8Array. Received type number'
});