mol_plot_all 1.2.1548 → 1.2.1550

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/node.mjs CHANGED
@@ -372,7 +372,7 @@ var $;
372
372
  if (this[$mol_ambient_ref])
373
373
  return this[$mol_ambient_ref];
374
374
  const owner = $mol_owning_get(this);
375
- return this[$mol_ambient_ref] = owner?.$ || $mol_object2.$;
375
+ return this[$mol_ambient_ref] = owner?.$ || this.constructor.$ || $mol_object2.$;
376
376
  }
377
377
  set $(next) {
378
378
  if (this[$mol_ambient_ref])
package/node.test.js CHANGED
@@ -363,7 +363,7 @@ var $;
363
363
  if (this[$mol_ambient_ref])
364
364
  return this[$mol_ambient_ref];
365
365
  const owner = $mol_owning_get(this);
366
- return this[$mol_ambient_ref] = owner?.$ || $mol_object2.$;
366
+ return this[$mol_ambient_ref] = owner?.$ || this.constructor.$ || $mol_object2.$;
367
367
  }
368
368
  set $(next) {
369
369
  if (this[$mol_ambient_ref])
@@ -7838,16 +7838,16 @@ var $;
7838
7838
  $mol_assert_unique([1], [2], [3]);
7839
7839
  },
7840
7840
  'two must be alike'() {
7841
- $mol_assert_like([3], [3]);
7841
+ $mol_assert_equal([3], [3]);
7842
7842
  },
7843
7843
  'three must be alike'() {
7844
- $mol_assert_like([3], [3], [3]);
7844
+ $mol_assert_equal([3], [3], [3]);
7845
7845
  },
7846
7846
  'two object must be alike'() {
7847
- $mol_assert_like({ a: 1 }, { a: 1 });
7847
+ $mol_assert_equal({ a: 1 }, { a: 1 });
7848
7848
  },
7849
7849
  'three object must be alike'() {
7850
- $mol_assert_like({ a: 1 }, { a: 1 }, { a: 1 });
7850
+ $mol_assert_equal({ a: 1 }, { a: 1 }, { a: 1 });
7851
7851
  },
7852
7852
  });
7853
7853
  })($ || ($ = {}));
@@ -8260,7 +8260,7 @@ var $;
8260
8260
  ;
8261
8261
  "use strict";
8262
8262
  var $;
8263
- (function ($) {
8263
+ (function ($_1) {
8264
8264
  $mol_test({
8265
8265
  'init with overload'() {
8266
8266
  class X extends $mol_object {
@@ -8273,6 +8273,13 @@ var $;
8273
8273
  });
8274
8274
  $mol_assert_equal(x.foo(), 2);
8275
8275
  },
8276
+ 'Context in instance inherits from class'($) {
8277
+ const custom = $.$mol_ambient({});
8278
+ class X extends $.$mol_object {
8279
+ static $ = custom;
8280
+ }
8281
+ $mol_assert_equal(new X().$, custom);
8282
+ },
8276
8283
  });
8277
8284
  })($ || ($ = {}));
8278
8285
 
@@ -8563,7 +8570,7 @@ var $;
8563
8570
  }
8564
8571
  await $mol_wire_async(A).a();
8565
8572
  $mol_assert_equal(A.instances.length, 2);
8566
- $mol_assert_equal(A.instances[0] instanceof A);
8573
+ $mol_assert_equal(A.instances[0] instanceof A, true);
8567
8574
  $mol_assert_equal(A.instances[0], A.instances[1]);
8568
8575
  }
8569
8576
  });