mol_plot_all 1.2.260 → 1.2.261
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 +28 -1
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.test.js +28 -1
- package/web.test.js.map +1 -1
package/node.test.js
CHANGED
|
@@ -6086,7 +6086,7 @@ var $;
|
|
|
6086
6086
|
return $mol_jsx("button", { title: props.hint }, target());
|
|
6087
6087
|
};
|
|
6088
6088
|
const dom = $mol_jsx(Button, { id: "foo", hint: "click me" }, () => 'hey!');
|
|
6089
|
-
$mol_assert_equal(dom.outerHTML, '<button title="click me"
|
|
6089
|
+
$mol_assert_equal(dom.outerHTML, '<button id="foo" title="click me" class="Button">hey!</button>');
|
|
6090
6090
|
},
|
|
6091
6091
|
'Nested guid generation'() {
|
|
6092
6092
|
const Foo = () => {
|
|
@@ -7479,6 +7479,33 @@ var $;
|
|
|
7479
7479
|
$mol_assert_equal(Fib.value(4), 8);
|
|
7480
7480
|
$mol_assert_equal(Fib.sums, 6);
|
|
7481
7481
|
},
|
|
7482
|
+
'Unsubscribe from temp pubs on complete'($) {
|
|
7483
|
+
class Random extends $mol_object2 {
|
|
7484
|
+
static $ = $;
|
|
7485
|
+
static seed() {
|
|
7486
|
+
return Math.random();
|
|
7487
|
+
}
|
|
7488
|
+
static resets(next) {
|
|
7489
|
+
return Math.random();
|
|
7490
|
+
}
|
|
7491
|
+
static value() {
|
|
7492
|
+
this.resets();
|
|
7493
|
+
return this.seed();
|
|
7494
|
+
}
|
|
7495
|
+
}
|
|
7496
|
+
__decorate([
|
|
7497
|
+
$mol_wire_method
|
|
7498
|
+
], Random, "seed", null);
|
|
7499
|
+
__decorate([
|
|
7500
|
+
$mol_wire_mem(0)
|
|
7501
|
+
], Random, "resets", null);
|
|
7502
|
+
__decorate([
|
|
7503
|
+
$mol_wire_mem(0)
|
|
7504
|
+
], Random, "value", null);
|
|
7505
|
+
const first = Random.value();
|
|
7506
|
+
Random.resets(null);
|
|
7507
|
+
$mol_assert_unique(Random.value(), first);
|
|
7508
|
+
},
|
|
7482
7509
|
});
|
|
7483
7510
|
})($ || ($ = {}));
|
|
7484
7511
|
//mol/wire/mem/mem.test.ts
|