refactor: DisableWebPagePreview

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2020-10-03 09:36:32 +08:00
parent 392621b9a5
commit 792e5b5eab

View File

@ -134,12 +134,8 @@ func TestDisableWebPagePreviewMessage(t *testing.T) {
}, },
} }
err := plugin.Exec()
assert.NotNil(t, err)
plugin.Config.Format = formatMarkdown
plugin.Config.Message = "DisableWebPagePreview https://www.google.com.tw" plugin.Config.Message = "DisableWebPagePreview https://www.google.com.tw"
err = plugin.Exec() err := plugin.Exec()
assert.Nil(t, err) assert.Nil(t, err)
// disable message // disable message