feat(logs): show logs if send error. (#55)

* feat(logs): show logs if send error.
This commit is contained in:
Bo-Yi Wu
2017-12-18 15:16:10 +08:00
committed by GitHub
parent 6a0370ab67
commit f22326b26a
3 changed files with 48 additions and 21 deletions
+3 -3
View File
@@ -88,17 +88,17 @@ func TestSendMessage(t *testing.T) {
}
err := plugin.Exec()
assert.Nil(t, err)
assert.NotNil(t, err)
plugin.Config.Format = "markdown"
plugin.Config.Message = []string{"Test escape under_score"}
err = plugin.Exec()
assert.Nil(t, err)
assert.NotNil(t, err)
// disable message
plugin.Config.Message = []string{}
err = plugin.Exec()
assert.Nil(t, err)
assert.NotNil(t, err)
}
func TestBotError(t *testing.T) {