Skip to content

Commit

Permalink
Change TextNode to CSS in test
Browse files Browse the repository at this point in the history
  • Loading branch information
chasefleming committed Mar 3, 2024
1 parent 17366fe commit 728826e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elements_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ func TestScript(t *testing.T) {
func TestStyle(t *testing.T) {
expected := `<style type="text/css">.test-class {color: #333;}</style>`
cssContent := `.test-class {color: #333;}`
el := Style(attrs.Props{attrs.Type: "text/css"}, TextNode(cssContent))
el := Style(attrs.Props{attrs.Type: "text/css"}, CSS(cssContent))
assert.Equal(t, expected, el.Render())
}

Expand Down

0 comments on commit 728826e

Please sign in to comment.