From 5c33b217ec9b1d1364650715d178e5781bf9ac45 Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Mon, 11 Oct 2021 11:48:45 +0200 Subject: [PATCH] crypto: handle initEDRaw pkey failure https://github.com/nodejs/node/pull/40188 --- spec/node-spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/node-spec.js b/spec/node-spec.js index 4d06e39d445d4..7437143554a66 100644 --- a/spec/node-spec.js +++ b/spec/node-spec.js @@ -330,7 +330,7 @@ describe('node feature', () => { expect(() => { crypto.createPrivateKey({ key: ed448, format: 'jwk' }); - }).to.throw(/Failed to create key - unsupported algorithm/); + }).to.throw(/Invalid JWK data/); }); });