Skip to content

Commit

Permalink
Added more unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pgaskin committed Jul 28, 2017
1 parent e8a5d1c commit 77ddd91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kepub/content_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
)

func TestCleanHTML(t *testing.T) {
h := `<meta content="urn:uuid:asd--asdasd-asdasdas-dasdasd234234" name="Adept.expected.resource" />��<st1:asd></st1:asd><o:p></o:p><h1></h1><h3></h3><h2>test</h2>`
h := `<meta content="urn:uuid:asd--asdasd-asdasdas-dasdasd234234" name="Adept.expected.resource" />��<st1:asd></st1:asd><o:p></o:p><h1></h1><h3></h3><h2>test</h2><style></style>`
cleanHTML(&h)
assert.Equal(t, " <h2>test</h2>", h, "should be equal if cleaned correctly")
assert.Equal(t, " <h2>test</h2><style type=\"text/css\"></style>", h, "should be equal if cleaned correctly")
}

func TestSmartenPunctuation(t *testing.T) {
Expand Down

0 comments on commit 77ddd91

Please sign in to comment.