mol_data_all 1.1.304 → 1.1.307
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 +2 -2
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.test.js +2 -2
- package/web.test.js.map +1 -1
package/node.test.js
CHANGED
|
@@ -675,8 +675,8 @@ var $;
|
|
|
675
675
|
$mol_assert_equal(dom.outerHTML, '<div>hello<strong>world</strong>!</div>');
|
|
676
676
|
},
|
|
677
677
|
'Function as component'() {
|
|
678
|
-
const Button = (
|
|
679
|
-
return $mol_jsx("button", { title: hint }, target());
|
|
678
|
+
const Button = (props, target) => {
|
|
679
|
+
return $mol_jsx("button", { title: props.hint }, target());
|
|
680
680
|
};
|
|
681
681
|
const dom = $mol_jsx(Button, { id: "/foo", hint: "click me" }, () => 'hey!');
|
|
682
682
|
$mol_assert_equal(dom.outerHTML, '<button title="click me" id="/foo">hey!</button>');
|