We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06c1033 commit cef211bCopy full SHA for cef211b
internal/transform/transform_test.go
@@ -252,10 +252,15 @@ func TestFullTransform(t *testing.T) {
252
want: `<Component><h1>Hello world</h1></Component>`,
253
},
254
{
255
- name: "Component before html",
+ name: "Component before html I",
256
source: `<Navigation /><html><body><h1>Astro</h1></body></html>`,
257
want: `<Navigation></Navigation><h1>Astro</h1>`,
258
259
+ {
260
+ name: "Component before html II",
261
+ source: `<MainHead title={title} description={description} /><html lang="en"><body><slot /></body></html>`,
262
+ want: `<MainHead title={title} description={description}></MainHead><slot></slot>`,
263
+ },
264
265
name: "respects explicitly authored elements",
266
source: `<html><Component /></html>`,
0 commit comments