diff --git a/test/spa-loader/spa-preloader-outside-disabled.test.ts b/test/spa-loader/spa-preloader-outside-disabled.test.ts index b5c5e5dc01..9b310e67e5 100644 --- a/test/spa-loader/spa-preloader-outside-disabled.test.ts +++ b/test/spa-loader/spa-preloader-outside-disabled.test.ts @@ -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( - `
loading...
\n
`, + const html = await $fetch('/spa') + expect(html.replace(/\n+/, '')).toContain( + `
loading...
`, ) })