mol_jsx_lib 0.0.63 → 0.0.64

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
@@ -326,7 +326,7 @@ var $;
326
326
  return $mol_jsx("button", { title: props.hint }, target());
327
327
  };
328
328
  const dom = $mol_jsx(Button, { id: "foo", hint: "click me" }, () => 'hey!');
329
- $mol_assert_equal(dom.outerHTML, '<button title="click me" id="foo" class="Button">hey!</button>');
329
+ $mol_assert_equal(dom.outerHTML, '<button id="foo" title="click me" class="Button">hey!</button>');
330
330
  },
331
331
  'Nested guid generation'() {
332
332
  const Foo = () => {
@@ -1376,6 +1376,19 @@ var $;
1376
1376
  ;
1377
1377
  "use strict";
1378
1378
  var $;
1379
+ (function ($) {
1380
+ $mol_test({
1381
+ 'const returns stored value'() {
1382
+ const foo = { bar: $mol_const(Math.random()) };
1383
+ $mol_assert_equal(foo.bar(), foo.bar());
1384
+ $mol_assert_equal(foo.bar(), foo.bar['()']);
1385
+ },
1386
+ });
1387
+ })($ || ($ = {}));
1388
+ //mol/const/const.test.ts
1389
+ ;
1390
+ "use strict";
1391
+ var $;
1379
1392
  (function ($) {
1380
1393
  $mol_test({
1381
1394
  'Primitives'() {
@@ -1438,6 +1451,41 @@ var $;
1438
1451
  ;
1439
1452
  "use strict";
1440
1453
  var $;
1454
+ (function ($_1) {
1455
+ $mol_test({
1456
+ 'Cached field'($) {
1457
+ class App extends $mol_object2 {
1458
+ static $ = $;
1459
+ static low = 1;
1460
+ static get high() {
1461
+ return this.low + 1;
1462
+ }
1463
+ static set high(next) {
1464
+ this.low = next - 1;
1465
+ }
1466
+ static test() {
1467
+ $mol_assert_equal(App.high, 2);
1468
+ App.high = 3;
1469
+ $mol_assert_equal(App.high, 3);
1470
+ }
1471
+ }
1472
+ __decorate([
1473
+ $mol_wire_field
1474
+ ], App, "low", void 0);
1475
+ __decorate([
1476
+ $mol_wire_field
1477
+ ], App, "high", null);
1478
+ __decorate([
1479
+ $mol_wire_method
1480
+ ], App, "test", null);
1481
+ App.test();
1482
+ },
1483
+ });
1484
+ })($ || ($ = {}));
1485
+ //mol/wire/field/field.test.ts
1486
+ ;
1487
+ "use strict";
1488
+ var $;
1441
1489
  (function ($_1) {
1442
1490
  $mol_test({
1443
1491
  'Class as component'() {
@@ -1534,54 +1582,6 @@ var $;
1534
1582
  ;
1535
1583
  "use strict";
1536
1584
  var $;
1537
- (function ($) {
1538
- $mol_test({
1539
- 'const returns stored value'() {
1540
- const foo = { bar: $mol_const(Math.random()) };
1541
- $mol_assert_equal(foo.bar(), foo.bar());
1542
- $mol_assert_equal(foo.bar(), foo.bar['()']);
1543
- },
1544
- });
1545
- })($ || ($ = {}));
1546
- //mol/const/const.test.ts
1547
- ;
1548
- "use strict";
1549
- var $;
1550
- (function ($_1) {
1551
- $mol_test({
1552
- 'Cached field'($) {
1553
- class App extends $mol_object2 {
1554
- static $ = $;
1555
- static low = 1;
1556
- static get high() {
1557
- return this.low + 1;
1558
- }
1559
- static set high(next) {
1560
- this.low = next - 1;
1561
- }
1562
- static test() {
1563
- $mol_assert_equal(App.high, 2);
1564
- App.high = 3;
1565
- $mol_assert_equal(App.high, 3);
1566
- }
1567
- }
1568
- __decorate([
1569
- $mol_wire_field
1570
- ], App, "low", void 0);
1571
- __decorate([
1572
- $mol_wire_field
1573
- ], App, "high", null);
1574
- __decorate([
1575
- $mol_wire_method
1576
- ], App, "test", null);
1577
- App.test();
1578
- },
1579
- });
1580
- })($ || ($ = {}));
1581
- //mol/wire/field/field.test.ts
1582
- ;
1583
- "use strict";
1584
- var $;
1585
1585
  (function ($_1) {
1586
1586
  $mol_test({
1587
1587
  'Watch one value'($) {