From f9b6966f3eb855607e5e3fc7ce257d6df7fcf906 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Wed, 1 Jan 2025 22:25:43 +0000 Subject: [PATCH] test: update client page test --- test/nuxt/client.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/nuxt/client.test.ts b/test/nuxt/client.test.ts index 87d34acc44..3694369d03 100644 --- a/test/nuxt/client.test.ts +++ b/test/nuxt/client.test.ts @@ -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'), }), ])