mirror of
https://github.com/chaijs/chai
synced 2024-11-14 15:57:10 +00:00
test: replaced arrow function for IE support (#1348)
This commit is contained in:
parent
2637ca2eb6
commit
e54d834be7
2 changed files with 2 additions and 2 deletions
2
chai.js
2
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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue