mol_regexp 0.0.356 → 0.0.357

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 CHANGED
@@ -584,8 +584,8 @@ var $;
584
584
  $mol_assert_equal(dom.outerHTML, '<div>hello<strong>world</strong>!</div>');
585
585
  },
586
586
  'Function as component'() {
587
- const Button = ({ hint }, target) => {
588
- return $mol_jsx("button", { title: hint }, target());
587
+ const Button = (props, target) => {
588
+ return $mol_jsx("button", { title: props.hint }, target());
589
589
  };
590
590
  const dom = $mol_jsx(Button, { id: "/foo", hint: "click me" }, () => 'hey!');
591
591
  $mol_assert_equal(dom.outerHTML, '<button title="click me" id="/foo">hey!</button>');