summaryrefslogtreecommitdiff
path: root/html/html_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'html/html_test.go')
-rw-r--r--html/html_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/html/html_test.go b/html/html_test.go
index 6dca6d4..defdc10 100644
--- a/html/html_test.go
+++ b/html/html_test.go
@@ -8,10 +8,10 @@ import (
)
func TestParse(t *testing.T) {
- result, _, err := Parse("<body>hello <b>world</b></body>")
+ result, _, err := Parse(`<body>hello <p color="blue">world</p></body>`)
require.NoError(t, err)
require.Equal(t, Tag{Name: "body", Attributes: map[string]string{}, Body: []Node{
"hello ",
- Tag{Name: "b", Attributes: map[string]string{}, Body: []Node{"world"}},
+ Tag{Name: "p", Attributes: map[string]string{"color": "blue"}, Body: []Node{"world"}},
}}, result)
}