summaryrefslogtreecommitdiff
path: root/test/parallel/test-crypto-cipher-decipher.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-crypto-cipher-decipher.js')
-rw-r--r--test/parallel/test-crypto-cipher-decipher.js24
1 files changed, 12 insertions, 12 deletions
diff --git a/test/parallel/test-crypto-cipher-decipher.js b/test/parallel/test-crypto-cipher-decipher.js
index ce6ea4e3b8..45e4bd6ea7 100644
--- a/test/parallel/test-crypto-cipher-decipher.js
+++ b/test/parallel/test-crypto-cipher-decipher.js
@@ -91,7 +91,7 @@ testCipher2(Buffer.from('0123456789abcdef'));
code: 'ERR_INVALID_ARG_TYPE',
type: TypeError,
message: 'The "cipher" argument must be of type string. ' +
- 'Received type object'
+ 'Received null'
});
common.expectsError(
@@ -99,8 +99,8 @@ testCipher2(Buffer.from('0123456789abcdef'));
{
code: 'ERR_INVALID_ARG_TYPE',
type: TypeError,
- message: 'The "password" argument must be one of type string, Buffer, ' +
- 'TypedArray, or DataView. Received type object'
+ message: 'The "password" argument must be of type string or an instance' +
+ ' of Buffer, TypedArray, or DataView. Received null'
});
common.expectsError(
@@ -108,8 +108,8 @@ testCipher2(Buffer.from('0123456789abcdef'));
{
code: 'ERR_INVALID_ARG_TYPE',
type: TypeError,
- message: 'The "data" argument must be one of type string, Buffer, ' +
- 'TypedArray, or DataView. Received type object'
+ message: 'The "data" argument must be of type string or an instance' +
+ ' of Buffer, TypedArray, or DataView. Received null'
});
common.expectsError(
@@ -117,8 +117,8 @@ testCipher2(Buffer.from('0123456789abcdef'));
{
code: 'ERR_INVALID_ARG_TYPE',
type: TypeError,
- message: 'The "buffer" argument must be one of type Buffer, ' +
- 'TypedArray, or DataView. Received type object'
+ message: 'The "buffer" argument must be an instance' +
+ ' of Buffer, TypedArray, or DataView. Received null'
});
}
@@ -134,7 +134,7 @@ testCipher2(Buffer.from('0123456789abcdef'));
code: 'ERR_INVALID_ARG_TYPE',
type: TypeError,
message: 'The "cipher" argument must be of type string. ' +
- 'Received type object'
+ 'Received null'
});
common.expectsError(
@@ -142,8 +142,8 @@ testCipher2(Buffer.from('0123456789abcdef'));
{
code: 'ERR_INVALID_ARG_TYPE',
type: TypeError,
- message: 'The "buffer" argument must be one of type Buffer, ' +
- 'TypedArray, or DataView. Received type object'
+ message: 'The "buffer" argument must be an instance of Buffer, ' +
+ 'TypedArray, or DataView. Received null'
});
common.expectsError(
@@ -151,8 +151,8 @@ testCipher2(Buffer.from('0123456789abcdef'));
{
code: 'ERR_INVALID_ARG_TYPE',
type: TypeError,
- message: 'The "password" argument must be one of type string, Buffer, ' +
- 'TypedArray, or DataView. Received type object'
+ message: 'The "password" argument must be of type string or an ' +
+ 'instance of Buffer, TypedArray, or DataView. Received null'
});
}