mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-17 06:01:34 +00:00
tests: Fix SPA tests
This commit is contained in:
parent
e02e8df224
commit
ffe1b6d8dc
4
test/fixtures/spa/pages/custom.vue
vendored
4
test/fixtures/spa/pages/custom.vue
vendored
@ -1,7 +1,5 @@
|
||||
<template>
|
||||
<div>
|
||||
Hello SPA!
|
||||
</div>
|
||||
<div>Hello SPA!</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
4
test/fixtures/spa/pages/index.vue
vendored
4
test/fixtures/spa/pages/index.vue
vendored
@ -1,7 +1,5 @@
|
||||
<template>
|
||||
<div>
|
||||
Hello SPA!
|
||||
</div>
|
||||
<div>Hello SPA!</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
@ -24,7 +24,7 @@ test('/ (basic spa)', async t => {
|
||||
t.true(html.includes('Hello SPA!'))
|
||||
})
|
||||
|
||||
test.failing('/ (custom layout)', async t => {
|
||||
test('/custom (custom layout)', async t => {
|
||||
const { html } = await renderRoute('/custom')
|
||||
t.true(html.includes('Custom layout'))
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user