Skip to content

Commit

Permalink
test: replaced arrow function for IE support (#1348)
Browse files Browse the repository at this point in the history
  • Loading branch information
flaambe committed Jun 12, 2020
1 parent 2637ca2 commit e54d834
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chai.js
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/chai/core/assertions.js
Expand Up @@ -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
Expand Down

0 comments on commit e54d834

Please sign in to comment.