From fac1ef7f91622611d69f99ef5682489d369537e7 Mon Sep 17 00:00:00 2001 From: flaambe Date: Fri, 12 Jun 2020 19:39:10 +0500 Subject: [PATCH] test: replaced arrow function for IE support --- chai.js | 2 +- lib/chai/core/assertions.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/chai.js b/chai.js index 7a4d77f1b..129bac19a 100644 --- a/chai.js +++ b/chai.js @@ -3526,7 +3526,7 @@ module.exports = function (chai, _) { if (contains) { this.assert( - list.some(possibility => expected.indexOf(possibility) > -1) + list.some(function(possibility) { return expected.indexOf(possibility) > -1 }) , 'expected #{this} to contain one of #{exp}' , 'expected #{this} to not contain one of #{exp}' , list diff --git a/lib/chai/core/assertions.js b/lib/chai/core/assertions.js index cb2050823..637eba952 100644 --- a/lib/chai/core/assertions.js +++ b/lib/chai/core/assertions.js @@ -3155,7 +3155,7 @@ module.exports = function (chai, _) { if (contains) { this.assert( - list.some(possibility => expected.indexOf(possibility) > -1) + list.some(function(possibility) { return expected.indexOf(possibility) > -1 }) , 'expected #{this} to contain one of #{exp}' , 'expected #{this} to not contain one of #{exp}' , list