summaryrefslogtreecommitdiff
path: root/test/parallel/test-buffer-concat.js
diff options
context:
space:
mode:
authorMithun Sasidharan <mithunsasidharan89@gmail.com>2017-12-06 13:40:46 +0530
committerAnatoli Papirovski <apapirovski@mac.com>2017-12-08 16:23:32 -0500
commit146a9b1a8a38285b0613559aa96498bc7859fc75 (patch)
tree9f055a5feeb75e57cdce42e53f8459d76dfb98ba /test/parallel/test-buffer-concat.js
parentd8c896cac5b3e31cbffb3da2c657dd59c83fbfeb (diff)
downloadandroid-node-v8-146a9b1a8a38285b0613559aa96498bc7859fc75.tar.gz
android-node-v8-146a9b1a8a38285b0613559aa96498bc7859fc75.tar.bz2
android-node-v8-146a9b1a8a38285b0613559aa96498bc7859fc75.zip
test: replace assert.throws w/ common.expectsError
PR-URL: https://github.com/nodejs/node/pull/17483 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/parallel/test-buffer-concat.js')
-rw-r--r--test/parallel/test-buffer-concat.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/parallel/test-buffer-concat.js b/test/parallel/test-buffer-concat.js
index 166d2eebb9..fb29056830 100644
--- a/test/parallel/test-buffer-concat.js
+++ b/test/parallel/test-buffer-concat.js
@@ -52,14 +52,14 @@ assertWrongList(['hello', 'world']);
assertWrongList(['hello', Buffer.from('world')]);
function assertWrongList(value) {
- assert.throws(() => {
+ common.expectsError(() => {
Buffer.concat(value);
- }, common.expectsError({
+ }, {
code: 'ERR_INVALID_ARG_TYPE',
type: TypeError,
message: 'The "list" argument must be one of type ' +
'Array, Buffer, or Uint8Array'
- }));
+ });
}
// eslint-disable-next-line crypto-check