Skip to content

Commit 2682a82

Browse files
panvaChALkeR
andauthored
Update test/parallel/test-crypto-key-objects-raw.js
Co-authored-by: Nikita Skovoroda <[email protected]>
1 parent ce3e203 commit 2682a82

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/parallel/test-crypto-key-objects-raw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const { hasOpenSSL } = require('../common/crypto');
4242
const rawPub = pubKeyObj.export({ format: 'raw-public' });
4343
const rawPriv = privKeyObj.export({ format: 'raw-private' });
4444

45-
for (const encoding of ['hex', 'base64']) {
45+
for (const encoding of ['hex', 'base64', 'utf8', 'latin1', 'ascii']) {
4646
assert.throws(() => crypto.createPublicKey({
4747
key: rawPub.toString(encoding),
4848
encoding,

0 commit comments

Comments
 (0)