mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 15:22:39 +00:00
test: update client page test
This commit is contained in:
parent
294038324c
commit
f9b6966f3e
@ -44,11 +44,13 @@ describe('client page', () => {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
const ClientPage = defineAsyncComponent(() => createClientPage(() => Promise.resolve(comp)))
|
||||||
|
|
||||||
const wrapper = mount({
|
const wrapper = mount({
|
||||||
setup () {
|
setup () {
|
||||||
return () => h('div', {}, [
|
return () => h('div', {}, [
|
||||||
h(Suspense, {}, {
|
h(Suspense, {}, {
|
||||||
default: () => h(createClientPage(() => Promise.resolve(comp)), {}),
|
default: () => h(ClientPage, {}),
|
||||||
fallback: () => h('div', { id: 'fallback' }, 'loading'),
|
fallback: () => h('div', { id: 'fallback' }, 'loading'),
|
||||||
}),
|
}),
|
||||||
])
|
])
|
||||||
|
Loading…
Reference in New Issue
Block a user