mol_wire_lib 1.0.604 → 1.0.606

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/web.test.js CHANGED
@@ -473,7 +473,7 @@ var $;
473
473
  $mol_assert_ok($mol_compare_deep(new Uint8Array([0]), new Uint8Array([0])));
474
474
  $mol_assert_not($mol_compare_deep(new Uint8Array([0]), new Uint8Array([1])));
475
475
  },
476
- 'Custom comparator'() {
476
+ 'Serializale'() {
477
477
  class User {
478
478
  name;
479
479
  rand;
@@ -488,6 +488,11 @@ var $;
488
488
  $mol_assert_ok($mol_compare_deep(new User('Jin'), new User('Jin')));
489
489
  $mol_assert_not($mol_compare_deep(new User('Jin'), new User('John')));
490
490
  },
491
+ 'Iterable'() {
492
+ $mol_assert_ok($mol_compare_deep(new URLSearchParams({ foo: 'bar' }), new URLSearchParams({ foo: 'bar' })));
493
+ $mol_assert_not($mol_compare_deep(new URLSearchParams({ foo: 'xxx' }), new URLSearchParams({ foo: 'yyy' })));
494
+ $mol_assert_not($mol_compare_deep(new URLSearchParams({ foo: 'xxx', bar: 'yyy' }), new URLSearchParams({ bar: 'yyy', foo: 'xxx' })));
495
+ },
491
496
  });
492
497
  })($ || ($ = {}));
493
498
  //mol/compare/deep/deep.test.tsx