From 1171c549526ba9eaa070f7d02431748f12fddf9d Mon Sep 17 00:00:00 2001 From: Levente Kurusa Date: Tue, 16 May 2023 00:07:58 +0200 Subject: feat(node/crypto): Builtin Diffie-Hellman Groups (#19137) Towards #18455 --- .../node_compat/test/parallel/test-crypto-dh.js | 26 +++++++++++----------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'cli/tests/node_compat/test/parallel/test-crypto-dh.js') diff --git a/cli/tests/node_compat/test/parallel/test-crypto-dh.js b/cli/tests/node_compat/test/parallel/test-crypto-dh.js index b436207ac..bcf0c6764 100644 --- a/cli/tests/node_compat/test/parallel/test-crypto-dh.js +++ b/cli/tests/node_compat/test/parallel/test-crypto-dh.js @@ -187,21 +187,21 @@ if (false) { message: 'The "curve" argument must be of type string. ' + 'Received undefined' }); - - assert.throws( - function() { - crypto.getDiffieHellman('unknown-group'); - }, - { - name: 'Error', - code: 'ERR_CRYPTO_UNKNOWN_DH_GROUP', - message: 'Unknown DH group' - }, - 'crypto.getDiffieHellman(\'unknown-group\') ' + - 'failed to throw the expected error.' - ); } +assert.throws( + function() { + crypto.getDiffieHellman('unknown-group'); + }, + { + name: 'Error', + code: 'ERR_CRYPTO_UNKNOWN_DH_GROUP', + message: 'Unknown DH group' + }, + 'crypto.getDiffieHellman(\'unknown-group\') ' + + 'failed to throw the expected error.' +); + assert.throws( () => crypto.createDiffieHellman('', true), { -- cgit v1.2.3