Bump packages to fix linter

This commit is contained in:
Henry Mercer 2023-01-18 20:50:03 +00:00
parent ed9506bbaf
commit 0a11e3fdd9
6063 changed files with 378752 additions and 306784 deletions

View file

@ -191,17 +191,30 @@ function deepEqualCyclic(actual, expectation, match) {
return mapsDeeplyEqual;
}
// jQuery objects have iteration protocols
// see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols
// But, they don't work well with the implementation concerning iterables below,
// so we will detect them and use jQuery's own equality function
/* istanbul ignore next -- this can only be tested in the `test-headless` script */
if (
actualObj.constructor &&
actualObj.constructor.name === "jQuery" &&
typeof actualObj.is === "function"
) {
return actualObj.is(expectationObj);
}
var isActualNonArrayIterable =
isIterable(actualObj) &&
!isArrayType(actualObj) &&
!isArguments(actualObj);
var isExpectationNonArrayIterable =
isIterable(expectation) &&
!isArrayType(expectation) &&
!isArguments(expectation);
isIterable(expectationObj) &&
!isArrayType(expectationObj) &&
!isArguments(expectationObj);
if (isActualNonArrayIterable || isExpectationNonArrayIterable) {
var actualArray = Array.from(actualObj);
var expectationArray = Array.from(expectation);
var expectationArray = Array.from(expectationObj);
if (actualArray.length !== expectationArray.length) {
return false;
}