mol_db 0.0.657 → 0.0.659
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/node.test.js +8 -1
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.test.js +8 -1
- package/web.test.js.map +1 -1
package/node.test.js
CHANGED
|
@@ -1490,6 +1490,8 @@ var $;
|
|
|
1490
1490
|
result = compare_map(left, right);
|
|
1491
1491
|
else if (ArrayBuffer.isView(left))
|
|
1492
1492
|
result = compare_buffer(left, right);
|
|
1493
|
+
else if (Symbol.iterator in left)
|
|
1494
|
+
result = compare_iterator(left[Symbol.iterator](), right[Symbol.iterator]());
|
|
1493
1495
|
else if (Symbol.toPrimitive in left)
|
|
1494
1496
|
result = compare_primitive(left, right);
|
|
1495
1497
|
else
|
|
@@ -1653,7 +1655,7 @@ var $;
|
|
|
1653
1655
|
$mol_assert_ok($mol_compare_deep(new Uint8Array([0]), new Uint8Array([0])));
|
|
1654
1656
|
$mol_assert_not($mol_compare_deep(new Uint8Array([0]), new Uint8Array([1])));
|
|
1655
1657
|
},
|
|
1656
|
-
'
|
|
1658
|
+
'Serializale'() {
|
|
1657
1659
|
class User {
|
|
1658
1660
|
name;
|
|
1659
1661
|
rand;
|
|
@@ -1668,6 +1670,11 @@ var $;
|
|
|
1668
1670
|
$mol_assert_ok($mol_compare_deep(new User('Jin'), new User('Jin')));
|
|
1669
1671
|
$mol_assert_not($mol_compare_deep(new User('Jin'), new User('John')));
|
|
1670
1672
|
},
|
|
1673
|
+
'Iterable'() {
|
|
1674
|
+
$mol_assert_ok($mol_compare_deep(new URLSearchParams({ foo: 'bar' }), new URLSearchParams({ foo: 'bar' })));
|
|
1675
|
+
$mol_assert_not($mol_compare_deep(new URLSearchParams({ foo: 'xxx' }), new URLSearchParams({ foo: 'yyy' })));
|
|
1676
|
+
$mol_assert_not($mol_compare_deep(new URLSearchParams({ foo: 'xxx', bar: 'yyy' }), new URLSearchParams({ bar: 'yyy', foo: 'xxx' })));
|
|
1677
|
+
},
|
|
1671
1678
|
});
|
|
1672
1679
|
})($ || ($ = {}));
|
|
1673
1680
|
//mol/compare/deep/deep.test.tsx
|