fix: global re

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

View File

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