mol_wire_lib 1.0.199 → 1.0.202
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 +27 -0
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.test.js +27 -0
- package/web.test.js.map +1 -1
package/package.json
CHANGED
package/web.test.js
CHANGED
|
@@ -1535,6 +1535,33 @@ var $;
|
|
|
1535
1535
|
$mol_assert_equal(Fib.value(4), 8);
|
|
1536
1536
|
$mol_assert_equal(Fib.sums, 6);
|
|
1537
1537
|
},
|
|
1538
|
+
'Unsubscribe from temp pubs on complete'($) {
|
|
1539
|
+
class Random extends $mol_object2 {
|
|
1540
|
+
static $ = $;
|
|
1541
|
+
static seed() {
|
|
1542
|
+
return Math.random();
|
|
1543
|
+
}
|
|
1544
|
+
static resets(next) {
|
|
1545
|
+
return Math.random();
|
|
1546
|
+
}
|
|
1547
|
+
static value() {
|
|
1548
|
+
this.resets();
|
|
1549
|
+
return this.seed();
|
|
1550
|
+
}
|
|
1551
|
+
}
|
|
1552
|
+
__decorate([
|
|
1553
|
+
$mol_wire_method
|
|
1554
|
+
], Random, "seed", null);
|
|
1555
|
+
__decorate([
|
|
1556
|
+
$mol_wire_mem(0)
|
|
1557
|
+
], Random, "resets", null);
|
|
1558
|
+
__decorate([
|
|
1559
|
+
$mol_wire_mem(0)
|
|
1560
|
+
], Random, "value", null);
|
|
1561
|
+
const first = Random.value();
|
|
1562
|
+
Random.resets(null);
|
|
1563
|
+
$mol_assert_unique(Random.value(), first);
|
|
1564
|
+
},
|
|
1538
1565
|
});
|
|
1539
1566
|
})($ || ($ = {}));
|
|
1540
1567
|
//mol/wire/mem/mem.test.ts
|