diff --git a/test/ssr/ssr-string.spec.js b/test/ssr/ssr-string.spec.js index 61abfce9..b4f96287 100644 --- a/test/ssr/ssr-string.spec.js +++ b/test/ssr/ssr-string.spec.js @@ -694,6 +694,34 @@ describe('SSR: renderToString', () => { }) }) + // #11963, #10391 + it('renders async children passed in slots', done => { + const Parent = { + template: `
` + } + const Child = { + template: `

child

` + } + renderVmWithOptions({ + template: ` + + + + `, + components: { + Parent, + Child: () => Promise.resolve(Child) + } + }, result => { + expect(result).toContain( + `

child

` + ) + done() + }) + }) + it('everything together', done => { renderVmWithOptions({ template: `