Update packages/runtime-core/__tests__/components/Suspense.spec.ts

This commit is contained in:
Eduardo San Martin Morote 2021-06-23 10:41:48 +02:00 committed by GitHub
parent 8de0372ab4
commit dae590b71f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 26 deletions

View File

@ -69,32 +69,6 @@ describe('Suspense', () => {
expect(serializeInner(root)).toBe(`<div>async</div>`)
})
test('fallback content', async () => {
const Async = defineAsyncComponent({
render() {
return h('div', 'async')
}
})
const Comp = {
setup() {
return () =>
h(Suspense, null, {
default: h(Async),
fallback: h('div', 'fallback')
})
}
}
const root = nodeOps.createElement('div')
render(h(Comp), root)
expect(serializeInner(root)).toBe(`<div>fallback</div>`)
await Promise.all(deps)
await nextTick()
expect(serializeInner(root)).toBe(`<div>async</div>`)
})
test('emits events', async () => {
const Async = defineAsyncComponent({
render() {