chore: add missing test for #13158

pull/13255/head
Rich Harris 2 years ago
parent 501f415190
commit de83171177

@ -5,7 +5,7 @@ export default test({
dev: true
},
html: `<p></p><h1>foo</h1><p></p><form></form>`,
html: `<p></p><h1>foo</h1><p></p><form></form> hello`,
recover: true,
@ -13,7 +13,8 @@ export default test({
errors: [
'node_invalid_placement_ssr: `<p>` (main.svelte:6:0) cannot contain `<h1>` (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: `<form>` (main.svelte:9:0) cannot contain `<form>` (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: `<form>` (main.svelte:9:0) cannot contain `<form>` (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: `<td>` (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: [

Loading…
Cancel
Save