From 355730cc2ca80b9e74dfb07b53aa1ff27390e8d3 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Mon, 16 Sep 2024 08:08:50 -0400 Subject: [PATCH] chore: add missing test for #13158 (#13255) --- .../tests/runtime-runes/samples/invalid-html-ssr/_config.js | 5 +++-- .../tests/runtime-runes/samples/invalid-html-ssr/main.svelte | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/svelte/tests/runtime-runes/samples/invalid-html-ssr/_config.js b/packages/svelte/tests/runtime-runes/samples/invalid-html-ssr/_config.js index d815d10fc7..f7327d1608 100644 --- a/packages/svelte/tests/runtime-runes/samples/invalid-html-ssr/_config.js +++ b/packages/svelte/tests/runtime-runes/samples/invalid-html-ssr/_config.js @@ -5,7 +5,7 @@ export default test({ dev: true }, - html: `

foo

`, + html: `

foo

hello`, recover: true, @@ -13,7 +13,8 @@ export default test({ errors: [ 'node_invalid_placement_ssr: `

` (main.svelte:6:0) cannot contain `

` (h1.svelte:1:0)\n\nThis can cause content to shift around as the browser repairs the HTML, and will likely result in a `hydration_mismatch` warning.', - 'node_invalid_placement_ssr: `
` (main.svelte:9:0) cannot contain `` (form.svelte:1:0)\n\nThis can cause content to shift around as the browser repairs the HTML, and will likely result in a `hydration_mismatch` warning.' + 'node_invalid_placement_ssr: `` (main.svelte:9:0) cannot contain `` (form.svelte:1:0)\n\nThis can cause content to shift around as the browser repairs the HTML, and will likely result in a `hydration_mismatch` warning.', + 'node_invalid_placement_ssr: `` (main.svelte:12:0) needs a valid parent element\n\nThis can cause content to shift around as the browser repairs the HTML, and will likely result in a `hydration_mismatch` warning.' ], warnings: [ diff --git a/packages/svelte/tests/runtime-runes/samples/invalid-html-ssr/main.svelte b/packages/svelte/tests/runtime-runes/samples/invalid-html-ssr/main.svelte index 84af671155..92ccc7283f 100644 --- a/packages/svelte/tests/runtime-runes/samples/invalid-html-ssr/main.svelte +++ b/packages/svelte/tests/runtime-runes/samples/invalid-html-ssr/main.svelte @@ -9,3 +9,4 @@
+hello