diff --git a/jsx/jsx.test.tsx b/jsx/jsx.test.tsx index 2953934666a..f58a75a9fe1 100644 --- a/jsx/jsx.test.tsx +++ b/jsx/jsx.test.tsx @@ -1,4 +1,5 @@ /** @jsx $mol_jsx */ +/** @jsxFrag $mol_jsx_frag */ namespace $ { $mol_test({ @@ -61,6 +62,32 @@ namespace $ { } , + 'Make fragment'() { + + const dom = + <> +
+
+ + + $mol_assert_equal( $mol_dom_serialize( dom ), '

' ) + + } , + + 'Spread fragment'() { + + const dom = +
+ <> +
+
+ +
+ + $mol_assert_equal( dom.outerHTML, '


' ) + + } , + 'Function as component'() { const Button = (