Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
chasefleming committed Apr 5, 2024
1 parent 27249dc commit 13fa1bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elem_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func TestRenderWithOptionsInjectsCSSIntoHead(t *testing.T) {
htmlOutput := e.RenderWithOptions(opts)

// Construct the expected HTML string with the CSS injected
expectedHTML := "<html><head><style>body { background-color: #fff; }</style></head><body></body></html>"
expectedHTML := "<!DOCTYPE html><html><head><style>body { background-color: #fff; }</style></head><body></body></html>"

// Use testify's assert.Equal to check if the HTML output matches the expected HTML
assert.Equal(t, expectedHTML, htmlOutput, "The generated HTML should include the CSS in the <head> section")
Expand Down

0 comments on commit 13fa1bb

Please sign in to comment.