mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-22 11:22:43 +00:00
tetst: remove newline
This commit is contained in:
parent
0651291f77
commit
2da211501b
@ -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>`,
|
||||
)
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user