Skip to content

Commit 3aa43cf

Browse files
committedSep 18, 2023
[Tests] node < 6 lacks array includes
1 parent 75dd8fd commit 3aa43cf

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
@@ -65,7 +65,7 @@ fixtures.valid.ec.forEach(function (f) {
6565
priv = Buffer.from(f['private'], 'base64');
6666
}
6767

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

0 commit comments

Comments
 (0)
Please sign in to comment.