Skip to content

Commit

Permalink
fixup!: Update test/parallel/test-crypto-keygen.js
Browse files Browse the repository at this point in the history
Co-authored-by: Filip Skokan <[email protected]>
  • Loading branch information
himself65 and panva committed Jul 19, 2021
1 parent 5a20497 commit f81c859
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/parallel/test-crypto-keygen.js
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,12 @@ const sec1EncExp = (cipher) => getRegExpForPEM('EC PRIVATE KEY', cipher);
assert.strictEqual(typeof privateKey, 'object');
assert.strictEqual(publicKey.x, privateKey.x);
assert.strictEqual(publicKey.y, privateKey.y);
assert(!publicKey.d);
assert(privateKey.d);
assert.strictEqual(publicKey.kty, 'EC');
assert.strictEqual(publicKey.kty, privateKey.kty);
assert.strictEqual(publicKey.crv, 'P-384');
assert.strictEqual(publicKey.crv, privateKey.crv);
}));
}

Expand Down

0 comments on commit f81c859

Please sign in to comment.