From 792e5b5eab993ef4199fda4ee53d65b55eef6bda Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Sat, 3 Oct 2020 09:36:32 +0800 Subject: [PATCH] refactor: DisableWebPagePreview Signed-off-by: Bo-Yi Wu --- plugin_test.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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