mol_jsx_lib 0.0.397 → 0.0.398

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
@@ -743,8 +743,9 @@ var $;
743
743
  $mol_assert_not($mol_compare_deep({ a: 1 }, { b: 2 }));
744
744
  $mol_assert_not($mol_compare_deep({ a: 1 }, { a: 2 }));
745
745
  $mol_assert_not($mol_compare_deep({}, { a: undefined }));
746
- $mol_assert_ok($mol_compare_deep({ a: 1, b: 2 }, { b: 2, a: 1 }));
746
+ $mol_assert_not($mol_compare_deep({ a: 1, b: 2 }, { b: 2, a: 1 }));
747
747
  $mol_assert_ok($mol_compare_deep({ a: { b: 1 } }, { a: { b: 1 } }));
748
+ $mol_assert_ok($mol_compare_deep(Object.create(null), Object.create(null)));
748
749
  },
749
750
  'Array'() {
750
751
  $mol_assert_ok($mol_compare_deep([], []));
@@ -759,6 +760,11 @@ var $;
759
760
  $mol_assert_not($mol_compare_deep(() => 1, () => 1));
760
761
  $mol_assert_not($mol_compare_deep(new RangeError('Test error'), new RangeError('Test error')));
761
762
  },
763
+ 'POJO with symbols'() {
764
+ const sym = Symbol();
765
+ $mol_assert_ok($mol_compare_deep({ [sym]: true }, { [sym]: true }));
766
+ $mol_assert_not($mol_compare_deep({ [Symbol()]: true }, { [Symbol()]: true }));
767
+ },
762
768
  'same POJOs with cyclic reference'() {
763
769
  const a = { foo: {} };
764
770
  a['self'] = a;