Skip to content

Commit

Permalink
Add bug from #712
Browse files Browse the repository at this point in the history
This checks in the input from #712 that moves the component from the head. The way I've written this test is kinda painful for generating the unit test snapshots though...
  • Loading branch information
jasikpark committed Jan 23, 2023
1 parent 3720ff1 commit dd54825
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions internal/parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,19 @@ func fixturesParseFragmentWithOptions() []struct {
source: "\x00</F></a>",
panic: "unable to close <a>",
},
{
name: "components in head should stay in head",
source: `<html lang="en">
<head>
<BaseHead />
</head>
</html>
<style>
@use "../styles/global.scss";
</style>`,
want: []*Node{},
},
}
}

Expand Down

0 comments on commit dd54825

Please sign in to comment.