Skip to content

Commit

Permalink
Merge pull request #55 from chimbori/fix-test-forgot-to-call-function
Browse files Browse the repository at this point in the history
Fix test, original author forgot to call function being tested: `mustMarkdownString`
  • Loading branch information
danog committed Nov 6, 2023
2 parents cf7a6db + 3c8f6aa commit e170533
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion renderers/markdown_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func TestRenderMarkdownWithHtml1(t *testing.T) {
require.Equal(t, "<p><div a=1><p><em>b</em></p>\n</div></p>\n", mustMarkdownString(`<div a=1 markdown="1">*b*</div>`))
require.Equal(t, "<p><div a=1><p><em>b</em></p>\n</div></p>\n", mustMarkdownString(`<div a=1 markdown='1'>*b*</div>`))
require.Equal(t, "<p><div a=1><p><em>b</em></p>\n</div></p>\n", mustMarkdownString(`<div a=1 markdown=1>*b*</div>`))
require.Equal(t, "<div a=1 markdown=1><p></div>", `<div a=1 markdown=1><p></div>`)
require.Equal(t, "<p><div a=1><p><p></div></p>\n</p>\n", mustMarkdownString(`<div a=1 markdown=1><p></div>`))
}

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

0 comments on commit e170533

Please sign in to comment.