Skip to content

Commit f647f30

Browse files
committed
update test
1 parent 8c5e8d6 commit f647f30

File tree

1 file changed

+2
-3
lines changed
  • packages/svelte/tests/runtime-runes/samples/invalid-html-ssr

1 file changed

+2
-3
lines changed

packages/svelte/tests/runtime-runes/samples/invalid-html-ssr/_config.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,8 @@ export default test({
3232
if (variant === 'hydrate') {
3333
assert.equal(
3434
log[0],
35-
`Svelte SSR validation error:\n\n<h1> (Component.svelte) is not a valid child element of <p> (main.svelte)\n\n` +
36-
'Ensure your components render valid HTML as the browser will try to repair invalid HTML, ' +
37-
'which may result in content being shifted around and will likely result in a hydration mismatch.'
35+
'`<h1>` (.../samples/invalid-html-ssr/Component.svelte:1:0) cannot contain `<p>` (.../samples/invalid-html-ssr/main.svelte:5:0)\n\n' +
36+
'This can cause content to shift around as the browser repairs the HTML, and will likely result in a `hydration_mismatch` warning.'
3837
);
3938
}
4039
}

0 commit comments

Comments
 (0)