File tree 1 file changed +30
-0
lines changed
1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -16,3 +16,33 @@ test('renders the component', () => {
16
16
test ( 'cleans up after each test by default' , ( ) => {
17
17
expect ( document . body . innerHTML ) . toMatchInlineSnapshot ( `` )
18
18
} )
19
+
20
+ test ( 'renders multi-root component' , ( ) => {
21
+ render ( {
22
+ template : `
23
+ <h1>Hello World</h1>
24
+ <h2>Hello World</h2>
25
+ ` ,
26
+ } )
27
+
28
+ expect ( document . body . innerHTML ) . toMatchInlineSnapshot ( `
29
+ <div>
30
+ <h1>Hello World</h1>
31
+ <h2>Hello World</h2>
32
+ </div>
33
+ ` )
34
+ } )
35
+
36
+ test ( 'cleans up after rendering multi-root node' , ( ) => {
37
+ expect ( document . body . innerHTML ) . toMatchInlineSnapshot ( `` )
38
+ } )
39
+
40
+ test ( 'renders single slot component' , ( ) => {
41
+ render ( { template : `<slot />` } )
42
+
43
+ expect ( document . body . innerHTML ) . toMatchInlineSnapshot ( `<div></div>` )
44
+ } )
45
+
46
+ test ( 'cleans up after rendering slot component' , ( ) => {
47
+ expect ( document . body . innerHTML ) . toMatchInlineSnapshot ( `` )
48
+ } )
You can’t perform that action at this time.
0 commit comments