Skip to content

Commit

Permalink
[Tests] skip unsupported schemes
Browse files Browse the repository at this point in the history
without this, id crashes in node 17
  • Loading branch information
ljharb committed Sep 18, 2023
1 parent 3aa43cf commit 703c83e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ fixtures.valid.rsa.forEach(function (f) {
priv = Buffer.from(f['private'], 'base64');
}

test(f.message, function (t) {
(nCrypto.getHashes().indexOf(f.scheme) >= 0 ? test : test.skip)(f.message, function (t) {
var bSign = bCrypto.createSign(f.scheme);
var nSign = nCrypto.createSign(f.scheme);
var bSig = bSign.update(message).sign(priv);
Expand Down

0 comments on commit 703c83e

Please sign in to comment.