|
|
@@ -39,6 +39,9 @@ describe('SSR Suspense', () => {
|
|
|
|
|
|
expect(await renderToString(createApp(Comp))).toBe(`<!---->`)
|
|
|
expect('Uncaught error in async setup').toHaveBeenWarned()
|
|
|
+ expect(
|
|
|
+ 'Unhandled error during execution of setup function'
|
|
|
+ ).toHaveBeenWarned()
|
|
|
expect('missing template').toHaveBeenWarned()
|
|
|
})
|
|
|
|
|
|
@@ -71,6 +74,9 @@ describe('SSR Suspense', () => {
|
|
|
`<div><div>async</div><!----></div>`
|
|
|
)
|
|
|
expect('Uncaught error in async setup').toHaveBeenWarned()
|
|
|
+ expect(
|
|
|
+ 'Unhandled error during execution of setup function'
|
|
|
+ ).toHaveBeenWarned()
|
|
|
expect('missing template or render function').toHaveBeenWarned()
|
|
|
})
|
|
|
|
|
|
@@ -94,6 +100,9 @@ describe('SSR Suspense', () => {
|
|
|
`<div><div>async</div><div><!----></div></div>`
|
|
|
)
|
|
|
expect('Uncaught error in async setup').toHaveBeenWarned()
|
|
|
+ expect(
|
|
|
+ 'Unhandled error during execution of setup function'
|
|
|
+ ).toHaveBeenWarned()
|
|
|
expect('missing template').toHaveBeenWarned()
|
|
|
})
|
|
|
|
|
|
@@ -117,6 +126,9 @@ describe('SSR Suspense', () => {
|
|
|
`<div><!----><div><div>async</div></div></div>`
|
|
|
)
|
|
|
expect('Uncaught error in async setup').toHaveBeenWarned()
|
|
|
+ expect(
|
|
|
+ 'Unhandled error during execution of setup function'
|
|
|
+ ).toHaveBeenWarned()
|
|
|
expect('missing template').toHaveBeenWarned()
|
|
|
})
|
|
|
})
|