mol_jsx_lib 0.0.299 → 0.0.301

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/web.test.js CHANGED
@@ -1462,6 +1462,9 @@ var $;
1462
1462
  //mol/key/key.test.tsx
1463
1463
  ;
1464
1464
  "use strict";
1465
+ //mol/type/foot/foot.test.ts
1466
+ ;
1467
+ "use strict";
1465
1468
  var $;
1466
1469
  (function ($) {
1467
1470
  $mol_wire_log.active();
@@ -1619,6 +1622,37 @@ var $;
1619
1622
  //mol/object/object.test.ts
1620
1623
  ;
1621
1624
  "use strict";
1625
+ //mol/type/result/result.test.ts
1626
+ ;
1627
+ "use strict";
1628
+ var $;
1629
+ (function ($) {
1630
+ $mol_test({
1631
+ 'define as methods'() {
1632
+ const { foo, bar } = $mol_wire_let({
1633
+ foo(next = 1) { return next; },
1634
+ bar() { return this.foo() + 1; },
1635
+ });
1636
+ $mol_assert_equal(foo(), 1);
1637
+ $mol_assert_equal(bar(), 2);
1638
+ $mol_assert_equal(foo(5), 5);
1639
+ $mol_assert_equal(bar(), 6);
1640
+ },
1641
+ 'define as closures'() {
1642
+ const { foo, bar } = $mol_wire_let({
1643
+ foo: (next = 1) => next,
1644
+ bar: () => foo() + 1,
1645
+ });
1646
+ $mol_assert_equal(foo(), 1);
1647
+ $mol_assert_equal(bar(), 2);
1648
+ $mol_assert_equal(foo(5), 5);
1649
+ $mol_assert_equal(bar(), 6);
1650
+ },
1651
+ });
1652
+ })($ || ($ = {}));
1653
+ //mol/wire/let/let.test.ts
1654
+ ;
1655
+ "use strict";
1622
1656
  var $;
1623
1657
  (function ($_1) {
1624
1658
  $mol_test({