diff --git a/plugin_test.go b/plugin_test.go index 590db69..250a02d 100644 --- a/plugin_test.go +++ b/plugin_test.go @@ -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