File tree 2 files changed +14
-1
lines changed
2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -16,5 +16,6 @@ module.exports = {
16
16
title : '<title><em>text</em></title>' ,
17
17
customElement :
18
18
'<custom-element class="myClass" custom-attribute="value" style="-o-transition: all .5s; line-height: 1;"></custom-element>' ,
19
- form : '<input type="text" value="foo" checked="checked">'
19
+ form : '<input type="text" value="foo" checked="checked">' ,
20
+ template : '<template><article><p>Test</p></article></template>'
20
21
} ;
Original file line number Diff line number Diff line change @@ -163,6 +163,18 @@ describe('HTMLReactParser', () => {
163
163
` ) ;
164
164
} ) ;
165
165
166
+ it ( 'parses template' , ( ) => {
167
+ expect ( parse ( html . template ) ) . toMatchInlineSnapshot ( `
168
+ <template>
169
+ <article>
170
+ <p>
171
+ Test
172
+ </p>
173
+ </article>
174
+ </template>
175
+ ` ) ;
176
+ } ) ;
177
+
166
178
it ( 'parses SVG' , ( ) => {
167
179
expect ( parse ( svg . complex ) ) . toMatchInlineSnapshot ( `
168
180
<svg
You can’t perform that action at this time.
0 commit comments