mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
test: await client errors (#4140)
This commit is contained in:
parent
6161087aad
commit
1ffcc741dc
@ -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')
|
||||
})
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user