mol_compare_deep 0.0.1417 → 0.0.1419
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
|
@@ -607,16 +607,16 @@ var $;
|
|
|
607
607
|
$mol_assert_unique([1], [2], [3]);
|
|
608
608
|
},
|
|
609
609
|
'two must be alike'() {
|
|
610
|
-
$
|
|
610
|
+
$mol_assert_equal([3], [3]);
|
|
611
611
|
},
|
|
612
612
|
'three must be alike'() {
|
|
613
|
-
$
|
|
613
|
+
$mol_assert_equal([3], [3], [3]);
|
|
614
614
|
},
|
|
615
615
|
'two object must be alike'() {
|
|
616
|
-
$
|
|
616
|
+
$mol_assert_equal({ a: 1 }, { a: 1 });
|
|
617
617
|
},
|
|
618
618
|
'three object must be alike'() {
|
|
619
|
-
$
|
|
619
|
+
$mol_assert_equal({ a: 1 }, { a: 1 }, { a: 1 });
|
|
620
620
|
},
|
|
621
621
|
});
|
|
622
622
|
})($ || ($ = {}));
|
|
@@ -930,7 +930,7 @@ var $;
|
|
|
930
930
|
if (this[$mol_ambient_ref])
|
|
931
931
|
return this[$mol_ambient_ref];
|
|
932
932
|
const owner = $mol_owning_get(this);
|
|
933
|
-
return this[$mol_ambient_ref] = owner?.$ || $mol_object2.$;
|
|
933
|
+
return this[$mol_ambient_ref] = owner?.$ || this.constructor.$ || $mol_object2.$;
|
|
934
934
|
}
|
|
935
935
|
set $(next) {
|
|
936
936
|
if (this[$mol_ambient_ref])
|
|
@@ -1894,7 +1894,7 @@ var $;
|
|
|
1894
1894
|
;
|
|
1895
1895
|
"use strict";
|
|
1896
1896
|
var $;
|
|
1897
|
-
(function ($) {
|
|
1897
|
+
(function ($_1) {
|
|
1898
1898
|
$mol_test({
|
|
1899
1899
|
'init with overload'() {
|
|
1900
1900
|
class X extends $mol_object {
|
|
@@ -1907,6 +1907,13 @@ var $;
|
|
|
1907
1907
|
});
|
|
1908
1908
|
$mol_assert_equal(x.foo(), 2);
|
|
1909
1909
|
},
|
|
1910
|
+
'Context in instance inherits from class'($) {
|
|
1911
|
+
const custom = $.$mol_ambient({});
|
|
1912
|
+
class X extends $.$mol_object {
|
|
1913
|
+
static $ = custom;
|
|
1914
|
+
}
|
|
1915
|
+
$mol_assert_equal(new X().$, custom);
|
|
1916
|
+
},
|
|
1910
1917
|
});
|
|
1911
1918
|
})($ || ($ = {}));
|
|
1912
1919
|
|
|
@@ -2947,7 +2954,7 @@ var $;
|
|
|
2947
2954
|
}
|
|
2948
2955
|
await $mol_wire_async(A).a();
|
|
2949
2956
|
$mol_assert_equal(A.instances.length, 2);
|
|
2950
|
-
$mol_assert_equal(A.instances[0] instanceof A);
|
|
2957
|
+
$mol_assert_equal(A.instances[0] instanceof A, true);
|
|
2951
2958
|
$mol_assert_equal(A.instances[0], A.instances[1]);
|
|
2952
2959
|
}
|
|
2953
2960
|
});
|