mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-24 17:28:31 +02:00
test: fix failed tests after code changes
This commit is contained in:
@@ -45,11 +45,11 @@ func TestFormatting(t *testing.T) {
|
||||
func TestMultiError(t *testing.T) {
|
||||
err := testMultiErr{[]error{testErr{}, testErr{}}}
|
||||
plain := Plain(err)
|
||||
if string(plain) != "test error\ntest error" {
|
||||
if string(plain) != "test error\ntest error\n" {
|
||||
t.Errorf("expected test error, got %s", string(plain))
|
||||
}
|
||||
md := Markdown(err)
|
||||
if string(md) != "**test error**\n**test error**" {
|
||||
if string(md) != "**test error**\n**test error**\n" {
|
||||
t.Errorf("expected test error, got %s", string(md))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user