File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -694,6 +694,34 @@ describe('SSR: renderToString', () => {
694
694
} )
695
695
} )
696
696
697
+ // #11963, #10391
698
+ it ( 'renders async children passed in slots' , done => {
699
+ const Parent = {
700
+ template : `<div><slot name="child"/></div>`
701
+ }
702
+ const Child = {
703
+ template : `<p>child</p>`
704
+ }
705
+ renderVmWithOptions ( {
706
+ template : `
707
+ <Parent>
708
+ <template #child>
709
+ <Child/>
710
+ </template>
711
+ </Parent>
712
+ ` ,
713
+ components : {
714
+ Parent,
715
+ Child : ( ) => Promise . resolve ( Child )
716
+ }
717
+ } , result => {
718
+ expect ( result ) . toContain (
719
+ `<div data-server-rendered="true"><p>child</p></div>`
720
+ )
721
+ done ( )
722
+ } )
723
+ } )
724
+
697
725
it ( 'everything together' , done => {
698
726
renderVmWithOptions ( {
699
727
template : `
You can’t perform that action at this time.
0 commit comments