summaryrefslogtreecommitdiff
path: root/html/html_test.go
diff options
context:
space:
mode:
authorAdam Scarr <adam@vektah.net>2017-08-13 17:30:10 +1000
committerAdam Scarr <adam@vektah.net>2017-08-13 18:56:23 +1000
commit5716ddb5e7ca3cb4ee445bdd4958c37aeb033baa (patch)
treea5d5017dbf1078220ceef24d9ea9432b33972291 /html/html_test.go
parent0dc37ae5bc10cc0669f88ab9febbc039a28f23d1 (diff)
Pass result in instead of returning
Diffstat (limited to 'html/html_test.go')
-rw-r--r--html/html_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/html/html_test.go b/html/html_test.go
index 7649fdd..79b0191 100644
--- a/html/html_test.go
+++ b/html/html_test.go
@@ -1,12 +1,15 @@
package html
import (
+ "os"
"testing"
"github.com/stretchr/testify/require"
+ "github.com/vektah/goparsify"
)
func TestParse(t *testing.T) {
+ goparsify.EnableLogging(os.Stdout)
result, err := parse(`<body>hello <p color="blue">world</p></body>`)
require.NoError(t, err)
require.Equal(t, htmlTag{Name: "body", Attributes: map[string]string{}, Body: []interface{}{