From 2da211501be0582b9e73b08061ac2ff70f813cc3 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 9 Dec 2024 12:48:48 +0000 Subject: [PATCH] tetst: remove newline --- test/spa-loader/spa-preloader-outside-disabled.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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...
`, ) })