refactor: DisableWebPagePreview
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
392621b9a5
commit
792e5b5eab
@ -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"
|
||||
err = plugin.Exec()
|
||||
err := plugin.Exec()
|
||||
assert.Nil(t, err)
|
||||
|
||||
// disable message
|
||||
|
Loading…
Reference in New Issue
Block a user