hyoo_sync_client 0.0.49 → 0.0.51

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
@@ -281,7 +281,7 @@ var $;
281
281
  $mol_assert_ok($mol_compare_deep(new Uint8Array([0]), new Uint8Array([0])));
282
282
  $mol_assert_not($mol_compare_deep(new Uint8Array([0]), new Uint8Array([1])));
283
283
  },
284
- 'Custom comparator'() {
284
+ 'Serializale'() {
285
285
  class User {
286
286
  name;
287
287
  rand;
@@ -296,6 +296,11 @@ var $;
296
296
  $mol_assert_ok($mol_compare_deep(new User('Jin'), new User('Jin')));
297
297
  $mol_assert_not($mol_compare_deep(new User('Jin'), new User('John')));
298
298
  },
299
+ 'Iterable'() {
300
+ $mol_assert_ok($mol_compare_deep(new URLSearchParams({ foo: 'bar' }), new URLSearchParams({ foo: 'bar' })));
301
+ $mol_assert_not($mol_compare_deep(new URLSearchParams({ foo: 'xxx' }), new URLSearchParams({ foo: 'yyy' })));
302
+ $mol_assert_not($mol_compare_deep(new URLSearchParams({ foo: 'xxx', bar: 'yyy' }), new URLSearchParams({ bar: 'yyy', foo: 'xxx' })));
303
+ },
299
304
  });
300
305
  })($ || ($ = {}));
301
306
  //mol/compare/deep/deep.test.tsx