mol_plot_all 1.2.237 → 1.2.240
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.d.ts +16 -8
- package/node.deps.json +1 -1
- package/node.esm.js +60 -20
- package/node.esm.js.map +1 -1
- package/node.js +60 -20
- package/node.js.map +1 -1
- package/node.test.js +100 -20
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.d.ts +16 -8
- package/web.deps.json +1 -1
- package/web.esm.js +70 -21
- package/web.esm.js.map +1 -1
- package/web.js +70 -21
- package/web.js.map +1 -1
- package/web.test.js +40 -0
- package/web.test.js.map +1 -1
package/web.test.js
CHANGED
|
@@ -945,6 +945,19 @@ var $;
|
|
|
945
945
|
App.value(2);
|
|
946
946
|
$mol_assert_equal(App.value(), 3);
|
|
947
947
|
},
|
|
948
|
+
'Read Pushed'($) {
|
|
949
|
+
class App extends $mol_object2 {
|
|
950
|
+
static $ = $;
|
|
951
|
+
static value(next = 0) {
|
|
952
|
+
return next;
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
__decorate([
|
|
956
|
+
$mol_wire_mem(0)
|
|
957
|
+
], App, "value", null);
|
|
958
|
+
$mol_assert_equal(App.value(1), 1);
|
|
959
|
+
$mol_assert_equal(App.value(), 1);
|
|
960
|
+
},
|
|
948
961
|
'Mem overrides mem'($) {
|
|
949
962
|
class Base extends $mol_object2 {
|
|
950
963
|
static $ = $;
|
|
@@ -1115,6 +1128,33 @@ var $;
|
|
|
1115
1128
|
], App, "test", null);
|
|
1116
1129
|
App.test();
|
|
1117
1130
|
},
|
|
1131
|
+
'Update deps on push'($) {
|
|
1132
|
+
class App extends $mol_object2 {
|
|
1133
|
+
static $ = $;
|
|
1134
|
+
static left(next = false) {
|
|
1135
|
+
return next;
|
|
1136
|
+
}
|
|
1137
|
+
static right(next = false) {
|
|
1138
|
+
return next;
|
|
1139
|
+
}
|
|
1140
|
+
static res(next) {
|
|
1141
|
+
return this.left(next) && this.right();
|
|
1142
|
+
}
|
|
1143
|
+
}
|
|
1144
|
+
__decorate([
|
|
1145
|
+
$mol_wire_mem(0)
|
|
1146
|
+
], App, "left", null);
|
|
1147
|
+
__decorate([
|
|
1148
|
+
$mol_wire_mem(0)
|
|
1149
|
+
], App, "right", null);
|
|
1150
|
+
__decorate([
|
|
1151
|
+
$mol_wire_mem(0)
|
|
1152
|
+
], App, "res", null);
|
|
1153
|
+
$mol_assert_equal(App.res(), false);
|
|
1154
|
+
$mol_assert_equal(App.res(true), false);
|
|
1155
|
+
$mol_assert_equal(App.right(true), true);
|
|
1156
|
+
$mol_assert_equal(App.res(), true);
|
|
1157
|
+
},
|
|
1118
1158
|
'Different order of pull and push'($) {
|
|
1119
1159
|
class App extends $mol_object2 {
|
|
1120
1160
|
static $ = $;
|