Skip to content

Commit 8c595cf

Browse files
committed
chore: add accurate test
1 parent ab5d1b4 commit 8c595cf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/basic.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ import { fileURLToPath } from 'node:url'
22
import { describe, it, expect } from 'vitest'
33
import { setup, $fetch } from '@nuxt/test-utils/e2e'
44

5-
describe('ssr', async () => {
5+
describe('nuxt', async () => {
66
await setup({
77
rootDir: fileURLToPath(new URL('./fixtures/basic', import.meta.url)),
88
})
99

10-
it('renders the index page', async () => {
10+
it('renders the nuxt entrypoint', async () => {
1111
// Get response to a server-rendered page with `$fetch`.
1212
const html = await $fetch('/')
13-
expect(html).toContain('<div>basic</div>')
13+
expect(html).toContain('<div id="__nuxt">')
1414
})
1515
})

0 commit comments

Comments
 (0)