From db27a07c62a5b7a6a8e0377db76683356fc26277 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 9 Dec 2024 12:52:30 +0000 Subject: [PATCH] fix: global re --- test/spa-loader/spa-preloader-outside-disabled.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/spa-loader/spa-preloader-outside-disabled.test.ts b/test/spa-loader/spa-preloader-outside-disabled.test.ts index 9b310e67e5..1e95bb8a7e 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+/, '')).toContain( + expect(html.replace(/\n+/g, '')).toContain( `
loading...
`, ) })