aboutsummaryrefslogtreecommitdiff
path: root/test/parallel/test-crypto-dh.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-crypto-dh.js')
-rw-r--r--test/parallel/test-crypto-dh.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/parallel/test-crypto-dh.js b/test/parallel/test-crypto-dh.js
index 6b2b8faa36..8e584100d9 100644
--- a/test/parallel/test-crypto-dh.js
+++ b/test/parallel/test-crypto-dh.js
@@ -49,14 +49,14 @@ assert.strictEqual(dh2.verifyError, 0);
() => { },
/abc/,
{}
-].forEach((i) => {
+].forEach((input) => {
common.expectsError(
- () => crypto.createDiffieHellman(i),
+ () => crypto.createDiffieHellman(input),
{
code: 'ERR_INVALID_ARG_TYPE',
type: TypeError,
message: 'The "sizeOrKey" argument must be one of type number, string, ' +
- 'Buffer, TypedArray, or DataView'
+ `Buffer, TypedArray, or DataView. Received type ${typeof input}`
}
);
});
@@ -380,5 +380,6 @@ common.expectsError(
{
code: 'ERR_INVALID_ARG_TYPE',
type: TypeError,
- message: 'The "curve" argument must be of type string'
+ message: 'The "curve" argument must be of type string. ' +
+ 'Received type undefined'
});