mol_wire_lib 1.0.526 → 1.0.528

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
@@ -412,8 +412,9 @@ var $;
412
412
  $mol_assert_not($mol_compare_deep({ a: 1 }, { b: 2 }));
413
413
  $mol_assert_not($mol_compare_deep({ a: 1 }, { a: 2 }));
414
414
  $mol_assert_not($mol_compare_deep({}, { a: undefined }));
415
- $mol_assert_ok($mol_compare_deep({ a: 1, b: 2 }, { b: 2, a: 1 }));
415
+ $mol_assert_not($mol_compare_deep({ a: 1, b: 2 }, { b: 2, a: 1 }));
416
416
  $mol_assert_ok($mol_compare_deep({ a: { b: 1 } }, { a: { b: 1 } }));
417
+ $mol_assert_ok($mol_compare_deep(Object.create(null), Object.create(null)));
417
418
  },
418
419
  'Array'() {
419
420
  $mol_assert_ok($mol_compare_deep([], []));
@@ -428,6 +429,11 @@ var $;
428
429
  $mol_assert_not($mol_compare_deep(() => 1, () => 1));
429
430
  $mol_assert_not($mol_compare_deep(new RangeError('Test error'), new RangeError('Test error')));
430
431
  },
432
+ 'POJO with symbols'() {
433
+ const sym = Symbol();
434
+ $mol_assert_ok($mol_compare_deep({ [sym]: true }, { [sym]: true }));
435
+ $mol_assert_not($mol_compare_deep({ [Symbol()]: true }, { [Symbol()]: true }));
436
+ },
431
437
  'same POJOs with cyclic reference'() {
432
438
  const a = { foo: {} };
433
439
  a['self'] = a;