From 1ffcc741dc0d0e39df0b273e5fdba0511de52433 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Thu, 7 Apr 2022 08:39:44 +0800 Subject: [PATCH] test: await client errors (#4140) --- test/basic.test.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/basic.test.ts b/test/basic.test.ts index c1de59d94c..30606ffdaa 100644 --- a/test/basic.test.ts +++ b/test/basic.test.ts @@ -45,7 +45,7 @@ describe('pages', () => { // should import components expect(html).toContain('This is a custom component with a named export.') - expectNoClientErrors('/') + await expectNoClientErrors('/') }) it('render 404', async () => { @@ -57,7 +57,7 @@ describe('pages', () => { expect(html).toContain('[...slug].vue') expect(html).toContain('404 at not-found') - expectNoClientErrors('/not-found') + await expectNoClientErrors('/not-found') }) it('/nested/[foo]/[bar].vue', async () => { @@ -84,7 +84,7 @@ describe('pages', () => { expect(html).toContain('nested/[foo]/index.vue') expect(html).toContain('foo: foobar') - expectNoClientErrors('/nested/foobar') + await expectNoClientErrors('/nested/foobar') }) it('/nested/[foo]/user-[group].vue', async () => { @@ -97,21 +97,21 @@ describe('pages', () => { expect(html).toContain('foo: foobar') expect(html).toContain('group: admin') - expectNoClientErrors('/nested/foobar/user-admin') + await expectNoClientErrors('/nested/foobar/user-admin') }) it('/parent', async () => { const html = await $fetch('/parent') expect(html).toContain('parent/index') - expectNoClientErrors('/parent') + await expectNoClientErrors('/parent') }) it('/another-parent', async () => { const html = await $fetch('/another-parent') expect(html).toContain('another-parent/index') - expectNoClientErrors('/another-parent') + await expectNoClientErrors('/another-parent') }) })