Skip to content

Commit dae590b

Browse files
authored
Update packages/runtime-core/__tests__/components/Suspense.spec.ts
1 parent 8de0372 commit dae590b

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

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

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -69,32 +69,6 @@ describe('Suspense', () => {
6969
expect(serializeInner(root)).toBe(`<div>async</div>`)
7070
})
7171

72-
test('fallback content', async () => {
73-
const Async = defineAsyncComponent({
74-
render() {
75-
return h('div', 'async')
76-
}
77-
})
78-
79-
const Comp = {
80-
setup() {
81-
return () =>
82-
h(Suspense, null, {
83-
default: h(Async),
84-
fallback: h('div', 'fallback')
85-
})
86-
}
87-
}
88-
89-
const root = nodeOps.createElement('div')
90-
render(h(Comp), root)
91-
expect(serializeInner(root)).toBe(`<div>fallback</div>`)
92-
93-
await Promise.all(deps)
94-
await nextTick()
95-
expect(serializeInner(root)).toBe(`<div>async</div>`)
96-
})
97-
9872
test('emits events', async () => {
9973
const Async = defineAsyncComponent({
10074
render() {

0 commit comments

Comments
 (0)