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.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/html/html_test.go b/html/html_test.go
index defdc10..f2f8e6f 100644
--- a/html/html_test.go
+++ b/html/html_test.go
@@ -4,14 +4,13 @@ import (
"testing"
"github.com/stretchr/testify/require"
- . "github.com/vektah/goparsify"
)
func TestParse(t *testing.T) {
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{
+ require.Equal(t, Tag{Name: "body", Attributes: map[string]string{}, Body: []interface{}{
"hello ",
- Tag{Name: "p", Attributes: map[string]string{"color": "blue"}, Body: []Node{"world"}},
+ Tag{Name: "p", Attributes: map[string]string{"color": "blue"}, Body: []interface{}{"world"}},
}}, result)
}