From e54d834be75430fce2e624063ca7abde9bf6bcfc Mon Sep 17 00:00:00 2001 From: Grigoriy Date: Fri, 12 Jun 2020 19:54:07 +0500 Subject: [PATCH] test: replaced arrow function for IE support (#1348) --- 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