Skip to content

Commit 5a748f9

Browse files
committed
fix tests
1 parent 7ac936f commit 5a748f9

File tree

1 file changed

+2
-1
lines changed
  • packages/svelte/tests/hydration

1 file changed

+2
-1
lines changed

packages/svelte/tests/hydration/test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ const { test, run } = suite<HydrationTest>(async (config, cwd) => {
131131

132132
flushSync();
133133

134-
const normalize = (string: string) => string.trim().replace(/\r\n/g, '\n');
134+
const normalize = (string: string) =>
135+
string.trim().replaceAll('\r\n', '\n').replaceAll('/>', '>');
135136

136137
const expected = read(`${cwd}/_expected.html`) ?? rendered.html;
137138
assert.equal(normalize(target.innerHTML), normalize(expected));

0 commit comments

Comments
 (0)