aboutsummaryrefslogtreecommitdiff
path: root/test/parallel/test-crypto-cipheriv-decipheriv.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-crypto-cipheriv-decipheriv.js')
-rw-r--r--test/parallel/test-crypto-cipheriv-decipheriv.js14
1 files changed, 8 insertions, 6 deletions
diff --git a/test/parallel/test-crypto-cipheriv-decipheriv.js b/test/parallel/test-crypto-cipheriv-decipheriv.js
index dcdec728f1..c0073abcfd 100644
--- a/test/parallel/test-crypto-cipheriv-decipheriv.js
+++ b/test/parallel/test-crypto-cipheriv-decipheriv.js
@@ -92,7 +92,8 @@ function testCipher3(key, iv) {
{
code: 'ERR_INVALID_ARG_TYPE',
type: TypeError,
- message: 'The "cipher" argument must be of type string'
+ message: 'The "cipher" argument must be of type string. ' +
+ 'Received type object'
});
common.expectsError(
@@ -101,7 +102,7 @@ function testCipher3(key, iv) {
code: 'ERR_INVALID_ARG_TYPE',
type: TypeError,
message: 'The "key" argument must be one of type string, Buffer, ' +
- 'TypedArray, or DataView'
+ 'TypedArray, or DataView. Received type object'
});
common.expectsError(
@@ -110,7 +111,7 @@ function testCipher3(key, iv) {
code: 'ERR_INVALID_ARG_TYPE',
type: TypeError,
message: 'The "iv" argument must be one of type string, Buffer, ' +
- 'TypedArray, or DataView'
+ 'TypedArray, or DataView. Received type number'
});
}
@@ -128,7 +129,8 @@ function testCipher3(key, iv) {
{
code: 'ERR_INVALID_ARG_TYPE',
type: TypeError,
- message: 'The "cipher" argument must be of type string'
+ message: 'The "cipher" argument must be of type string. ' +
+ 'Received type object'
});
common.expectsError(
@@ -137,7 +139,7 @@ function testCipher3(key, iv) {
code: 'ERR_INVALID_ARG_TYPE',
type: TypeError,
message: 'The "key" argument must be one of type string, Buffer, ' +
- 'TypedArray, or DataView'
+ 'TypedArray, or DataView. Received type object'
});
common.expectsError(
@@ -146,7 +148,7 @@ function testCipher3(key, iv) {
code: 'ERR_INVALID_ARG_TYPE',
type: TypeError,
message: 'The "iv" argument must be one of type string, Buffer, ' +
- 'TypedArray, or DataView'
+ 'TypedArray, or DataView. Received type number'
});
}