@jest/expect-utils 28.1.1 → 28.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/jasmineUtils.js +9 -0
- package/build/utils.js +2 -1
- package/package.json +3 -3
package/build/jasmineUtils.js
CHANGED
@@ -7,6 +7,7 @@ exports.equals = void 0;
|
|
7
7
|
exports.isA = isA;
|
8
8
|
exports.isImmutableList = isImmutableList;
|
9
9
|
exports.isImmutableOrderedKeyed = isImmutableOrderedKeyed;
|
10
|
+
exports.isImmutableOrderedSet = isImmutableOrderedSet;
|
10
11
|
exports.isImmutableUnorderedKeyed = isImmutableUnorderedKeyed;
|
11
12
|
exports.isImmutableUnorderedSet = isImmutableUnorderedSet;
|
12
13
|
|
@@ -271,3 +272,11 @@ function isImmutableOrderedKeyed(maybeKeyed) {
|
|
271
272
|
maybeKeyed[IS_ORDERED_SENTINEL]
|
272
273
|
);
|
273
274
|
}
|
275
|
+
|
276
|
+
function isImmutableOrderedSet(maybeSet) {
|
277
|
+
return !!(
|
278
|
+
maybeSet &&
|
279
|
+
maybeSet[IS_SET_SENTINEL] &&
|
280
|
+
maybeSet[IS_ORDERED_SENTINEL]
|
281
|
+
);
|
282
|
+
}
|
package/build/utils.js
CHANGED
@@ -280,7 +280,8 @@ const iterableEquality = (
|
|
280
280
|
|
281
281
|
if (
|
282
282
|
!(0, _jasmineUtils.isImmutableList)(a) &&
|
283
|
-
!(0, _jasmineUtils.isImmutableOrderedKeyed)(a)
|
283
|
+
!(0, _jasmineUtils.isImmutableOrderedKeyed)(a) &&
|
284
|
+
!(0, _jasmineUtils.isImmutableOrderedSet)(a)
|
284
285
|
) {
|
285
286
|
const aEntries = Object.entries(a);
|
286
287
|
const bEntries = Object.entries(b);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@jest/expect-utils",
|
3
|
-
"version": "28.1.
|
3
|
+
"version": "28.1.3",
|
4
4
|
"repository": {
|
5
5
|
"type": "git",
|
6
6
|
"url": "https://github.com/facebook/jest.git",
|
@@ -21,7 +21,7 @@
|
|
21
21
|
},
|
22
22
|
"devDependencies": {
|
23
23
|
"immutable": "^4.0.0",
|
24
|
-
"jest-matcher-utils": "^28.1.
|
24
|
+
"jest-matcher-utils": "^28.1.3"
|
25
25
|
},
|
26
26
|
"engines": {
|
27
27
|
"node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0"
|
@@ -29,5 +29,5 @@
|
|
29
29
|
"publishConfig": {
|
30
30
|
"access": "public"
|
31
31
|
},
|
32
|
-
"gitHead": "
|
32
|
+
"gitHead": "2cce069800dab3fc8ca7c469b32d2e2b2f7e2bb1"
|
33
33
|
}
|