diff --git a/test/spa-loader/spa-preloader-outside-disabled.test.ts b/test/spa-loader/spa-preloader-outside-disabled.test.ts index 1e95bb8a7e..1a6e1efbf5 100644 --- a/test/spa-loader/spa-preloader-outside-disabled.test.ts +++ b/test/spa-loader/spa-preloader-outside-disabled.test.ts @@ -27,7 +27,7 @@ await setup({ describe('spaLoadingTemplateLocation flag is set to `within`', () => { it('shoul be render loader inside appTag', async () => { const html = await $fetch('/spa') - expect(html.replace(/\n+/g, '')).toContain( + expect(html.replace(/[\n\r]+/g, '')).toContain( `
loading...
`, ) })