chore: add missing test for #13158 (#13255)

pull/13265/head
Rich Harris 12 months ago committed by GitHub
parent 6ed45db20f
commit 355730cc2c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -5,7 +5,7 @@ export default test({
dev: true 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, recover: true,
@ -13,7 +13,8 @@ export default test({
errors: [ 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: `<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: [ warnings: [

@ -9,3 +9,4 @@
<form> <form>
<Form /> <Form />
</form> </form>
<td>hello</td>

Loading…
Cancel
Save