Skip to content

Commit

Permalink
[Tests] node < 6 lacks array includes
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Sep 18, 2023
1 parent 75dd8fd commit 3aa43cf
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 @@ -65,7 +65,7 @@ fixtures.valid.ec.forEach(function (f) {
priv = Buffer.from(f['private'], 'base64');
}

(nCrypto.getHashes().includes(f.scheme) ? test : test.skip)(f.message, function (t) {
(nCrypto.getHashes().indexOf(f.scheme) >= 0 ? test : test.skip)(f.message, function (t) {
var nSign = nCrypto.createSign(f.scheme);
var bSign = bCrypto.createSign(f.scheme);

Expand Down

0 comments on commit 3aa43cf

Please sign in to comment.