diff --git a/test/index.js b/test/index.js index dcfd303..64ca37d 100644 --- a/test/index.js +++ b/test/index.js @@ -63,8 +63,15 @@ fixtures.valid.ec.forEach(function (f) { } test(f.message, function (t) { - var nSign = nCrypto.createSign(f.scheme) - var bSign = bCrypto.createSign(f.scheme) + var nSign, bSign + try { + nSign = nCrypto.createSign(f.scheme) + bSign = bCrypto.createSign(f.scheme) + } catch(ex) { + console.info("skipping unsupported scheme", f.scheme) + t.end() + return + } var bSig = bSign.update(message).sign(priv) var nSig = nSign.update(message).sign(priv)