Skip to content

Commit 703c83e

Browse files
committedSep 18, 2023
[Tests] skip unsupported schemes
without this, id crashes in node 17
1 parent 3aa43cf commit 703c83e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎test/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ fixtures.valid.rsa.forEach(function (f) {
2828
priv = Buffer.from(f['private'], 'base64');
2929
}
3030

31-
test(f.message, function (t) {
31+
(nCrypto.getHashes().indexOf(f.scheme) >= 0 ? test : test.skip)(f.message, function (t) {
3232
var bSign = bCrypto.createSign(f.scheme);
3333
var nSign = nCrypto.createSign(f.scheme);
3434
var bSig = bSign.update(message).sign(priv);

0 commit comments

Comments
 (0)
Please sign in to comment.