test: update client page test

This commit is contained in:
Daniel Roe 2025-01-01 22:25:43 +00:00
parent 294038324c
commit f9b6966f3e
No known key found for this signature in database
GPG Key ID: CBC814C393D93268

View File

@ -44,11 +44,13 @@ describe('client page', () => {
},
})
const ClientPage = defineAsyncComponent(() => createClientPage(() => Promise.resolve(comp)))
const wrapper = mount({
setup () {
return () => h('div', {}, [
h(Suspense, {}, {
default: () => h(createClientPage(() => Promise.resolve(comp)), {}),
default: () => h(ClientPage, {}),
fallback: () => h('div', { id: 'fallback' }, 'loading'),
}),
])