Skip to content

Commit

Permalink
fix scriptlet tests to support injecting into head tag
Browse files Browse the repository at this point in the history
  • Loading branch information
AitakattaSora committed Jan 28, 2025
1 parent b8749d4 commit 42e576a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/scriptlet/scriptlet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func hasScriptTag(t *testing.T, body io.ReadCloser) bool {

func newBlankHTTPResponse(t *testing.T) *http.Response {
t.Helper()
body := io.NopCloser(strings.NewReader(`<html><body></body></html>`))
body := io.NopCloser(strings.NewReader(`<html><head></head></html>`))
header := http.Header{
"Content-Type": []string{"text/html; charset=UTF-8"},
}
Expand Down

0 comments on commit 42e576a

Please sign in to comment.