mirror of
https://github.com/chaijs/chai
synced 2024-11-14 15:57:10 +00:00
Fixed a regression that caused SyntaxErrors on IE 11
The changes made in #1334 incorrectly used an arrow function and as this isn't supported on IE 11 it causes a SyntaxError to be thrown when loading chai.
This commit is contained in:
parent
8a24666156
commit
71245a3e33
1 changed files with 1 additions and 1 deletions
|
@ -3178,7 +3178,7 @@ module.exports = function (chai, _) {
|
|||
} else {
|
||||
if (isDeep) {
|
||||
this.assert(
|
||||
list.some(possibility => _.eql(expected, possibility))
|
||||
list.some(function(possibility) { return _.eql(expected, possibility) })
|
||||
, 'expected #{this} to deeply equal one of #{exp}'
|
||||
, 'expected #{this} to deeply equal one of #{exp}'
|
||||
, list
|
||||
|
|
Loading…
Reference in a new issue