docs: update example test snapshots to remove escapes

This commit is contained in:
Daniel Roe 2023-12-19 20:02:54 +00:00
parent 3c30f16105
commit 5de779a7de
No known key found for this signature in database
GPG Key ID: 3714AB03996F442B

View File

@ -169,7 +169,7 @@ it('can also mount an app', async () => {
"<div>This is an auto-imported component</div> "<div>This is an auto-imported component</div>
<div> I am a global component </div> <div> I am a global component </div>
<div>/</div> <div>/</div>
<a href=\\"/test\\"> Test link </a>" <a href="/test"> Test link </a>"
`) `)
}) })
``` ```
@ -201,10 +201,10 @@ import { renderSuspended } from '@nuxt/test-utils/runtime'
it('can also render an app', async () => { it('can also render an app', async () => {
const html = await renderSuspended(App, { route: '/test' }) const html = await renderSuspended(App, { route: '/test' })
expect(html()).toMatchInlineSnapshot(` expect(html()).toMatchInlineSnapshot(`
"<div id=\\"test-wrapper\\"> "<div id="test-wrapper">
<div>This is an auto-imported component</div> <div>This is an auto-imported component</div>
<div> I am a global component </div> <div> I am a global component </div>
<div>Index page</div><a href=\\"/test\\"> Test link </a> <div>Index page</div><a href="/test"> Test link </a>
</div>" </div>"
`) `)
}) })