test: replaced arrow function for IE support (#1348)

This commit is contained in:
Grigoriy 2020-06-12 19:54:07 +05:00 committed by GitHub
parent 2637ca2eb6
commit e54d834be7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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