mol_data_all 1.1.1627 → 1.1.1629
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.test.js +14 -7
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.test.js +4 -4
- package/web.test.js.map +1 -1
package/node.test.js
CHANGED
|
@@ -995,7 +995,7 @@ var $;
|
|
|
995
995
|
if (this[$mol_ambient_ref])
|
|
996
996
|
return this[$mol_ambient_ref];
|
|
997
997
|
const owner = $mol_owning_get(this);
|
|
998
|
-
return this[$mol_ambient_ref] = owner?.$ || $mol_object2.$;
|
|
998
|
+
return this[$mol_ambient_ref] = owner?.$ || this.constructor.$ || $mol_object2.$;
|
|
999
999
|
}
|
|
1000
1000
|
set $(next) {
|
|
1001
1001
|
if (this[$mol_ambient_ref])
|
|
@@ -1049,7 +1049,7 @@ var $;
|
|
|
1049
1049
|
;
|
|
1050
1050
|
"use strict";
|
|
1051
1051
|
var $;
|
|
1052
|
-
(function ($) {
|
|
1052
|
+
(function ($_1) {
|
|
1053
1053
|
$mol_test({
|
|
1054
1054
|
'init with overload'() {
|
|
1055
1055
|
class X extends $mol_object {
|
|
@@ -1062,6 +1062,13 @@ var $;
|
|
|
1062
1062
|
});
|
|
1063
1063
|
$mol_assert_equal(x.foo(), 2);
|
|
1064
1064
|
},
|
|
1065
|
+
'Context in instance inherits from class'($) {
|
|
1066
|
+
const custom = $.$mol_ambient({});
|
|
1067
|
+
class X extends $.$mol_object {
|
|
1068
|
+
static $ = custom;
|
|
1069
|
+
}
|
|
1070
|
+
$mol_assert_equal(new X().$, custom);
|
|
1071
|
+
},
|
|
1065
1072
|
});
|
|
1066
1073
|
})($ || ($ = {}));
|
|
1067
1074
|
|
|
@@ -2410,7 +2417,7 @@ var $;
|
|
|
2410
2417
|
}
|
|
2411
2418
|
await $mol_wire_async(A).a();
|
|
2412
2419
|
$mol_assert_equal(A.instances.length, 2);
|
|
2413
|
-
$mol_assert_equal(A.instances[0] instanceof A);
|
|
2420
|
+
$mol_assert_equal(A.instances[0] instanceof A, true);
|
|
2414
2421
|
$mol_assert_equal(A.instances[0], A.instances[1]);
|
|
2415
2422
|
}
|
|
2416
2423
|
});
|
|
@@ -3561,16 +3568,16 @@ var $;
|
|
|
3561
3568
|
$mol_assert_unique([1], [2], [3]);
|
|
3562
3569
|
},
|
|
3563
3570
|
'two must be alike'() {
|
|
3564
|
-
$
|
|
3571
|
+
$mol_assert_equal([3], [3]);
|
|
3565
3572
|
},
|
|
3566
3573
|
'three must be alike'() {
|
|
3567
|
-
$
|
|
3574
|
+
$mol_assert_equal([3], [3], [3]);
|
|
3568
3575
|
},
|
|
3569
3576
|
'two object must be alike'() {
|
|
3570
|
-
$
|
|
3577
|
+
$mol_assert_equal({ a: 1 }, { a: 1 });
|
|
3571
3578
|
},
|
|
3572
3579
|
'three object must be alike'() {
|
|
3573
|
-
$
|
|
3580
|
+
$mol_assert_equal({ a: 1 }, { a: 1 }, { a: 1 });
|
|
3574
3581
|
},
|
|
3575
3582
|
});
|
|
3576
3583
|
})($ || ($ = {}));
|