From 3aa43cfbc1fdde8481bcdd3bff581574159b869a Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Mon, 18 Sep 2023 11:41:46 -0700 Subject: [PATCH] [Tests] node < 6 lacks array `includes` --- test/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/index.js b/test/index.js index 3f83280..f6f63ad 100644 --- a/test/index.js +++ b/test/index.js @@ -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);