From af98feff515afd568edd57b83147f9aed3c952eb Mon Sep 17 00:00:00 2001 From: n1474335 Date: Mon, 1 Feb 2021 16:24:47 +0000 Subject: [PATCH] Improved PGP keygen test --- tests/node/tests/operations.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/node/tests/operations.mjs b/tests/node/tests/operations.mjs index 163d639a..f208384c 100644 --- a/tests/node/tests/operations.mjs +++ b/tests/node/tests/operations.mjs @@ -588,7 +588,7 @@ Password: 034148`; const result = await chef.generatePGPKeyPair("Back To the Drawing Board", { keyType: "ECC-256", }); - assert.strictEqual(result.toString().length, 2560); + assert.strictEqual(result.toString().substr(0, 37), "-----BEGIN PGP PRIVATE KEY BLOCK-----"); }), it("Generate UUID", () => {