diff --git a/packages/svelte/tests/hydration/test.ts b/packages/svelte/tests/hydration/test.ts index 5e7fb32ab2..7247778d0f 100644 --- a/packages/svelte/tests/hydration/test.ts +++ b/packages/svelte/tests/hydration/test.ts @@ -115,7 +115,7 @@ const { test, run } = suite(async (config, cwd) => { flushSync(); - const normalize = (string: string) => string.trim().replace(/\n\r/g, '\n'); + const normalize = (string: string) => string.trim().replace(/\r\n/g, '\n'); const expected = read(`${cwd}/_expected.html`) ?? rendered.html; assert.equal(normalize(target.innerHTML), normalize(expected));