tetst: remove newline

This commit is contained in:
Daniel Roe 2024-12-09 12:48:48 +00:00
parent 0651291f77
commit 2da211501b
No known key found for this signature in database
GPG Key ID: 3714AB03996F442B

View File

@ -26,9 +26,9 @@ await setup({
describe('spaLoadingTemplateLocation flag is set to `within`', () => {
it('shoul be render loader inside appTag', async () => {
const html = await $fetch('/spa')
expect(html).toContain(
`<div id="__nuxt"><div data-testid="loader">loading...</div>\n</div>`,
const html = await $fetch<string>('/spa')
expect(html.replace(/\n+/, '')).toContain(
`<div id="__nuxt"><div data-testid="loader">loading...</div></div>`,
)
})