mol_plot_all 1.2.548 → 1.2.550

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
@@ -344,8 +344,9 @@ var $;
344
344
  $mol_assert_not($mol_compare_deep({ a: 1 }, { b: 2 }));
345
345
  $mol_assert_not($mol_compare_deep({ a: 1 }, { a: 2 }));
346
346
  $mol_assert_not($mol_compare_deep({}, { a: undefined }));
347
- $mol_assert_ok($mol_compare_deep({ a: 1, b: 2 }, { b: 2, a: 1 }));
347
+ $mol_assert_not($mol_compare_deep({ a: 1, b: 2 }, { b: 2, a: 1 }));
348
348
  $mol_assert_ok($mol_compare_deep({ a: { b: 1 } }, { a: { b: 1 } }));
349
+ $mol_assert_ok($mol_compare_deep(Object.create(null), Object.create(null)));
349
350
  },
350
351
  'Array'() {
351
352
  $mol_assert_ok($mol_compare_deep([], []));
@@ -360,6 +361,11 @@ var $;
360
361
  $mol_assert_not($mol_compare_deep(() => 1, () => 1));
361
362
  $mol_assert_not($mol_compare_deep(new RangeError('Test error'), new RangeError('Test error')));
362
363
  },
364
+ 'POJO with symbols'() {
365
+ const sym = Symbol();
366
+ $mol_assert_ok($mol_compare_deep({ [sym]: true }, { [sym]: true }));
367
+ $mol_assert_not($mol_compare_deep({ [Symbol()]: true }, { [Symbol()]: true }));
368
+ },
363
369
  'same POJOs with cyclic reference'() {
364
370
  const a = { foo: {} };
365
371
  a['self'] = a;