Bläddra i källkod

修复测试用例

Signed-off-by: allan716 <[email protected]>
allan716 3 år sedan
förälder
incheckning
74b7ec487f
2 ändrade filer med 2 tillägg och 3 borttagningar
  1. 1 0
      .gitignore
  2. 1 3
      internal/pkg/notify_center/NotifyCenter_test.go

+ 1 - 0
.gitignore

@@ -52,3 +52,4 @@ TestData/
 /internal/pkg/sub_parser_hub/Logs/*.log
 /internal/logic/series_helper/Logs/*.log
 /internal/pkg/my_util/Logs/*.log
+/internal/pkg/notify_center/Logs/*.log

+ 1 - 3
internal/pkg/notify_center/NotifyCenter_test.go

@@ -1,14 +1,12 @@
 package notify_center
 
 import (
-	"github.com/allanpk716/ChineseSubFinder/internal/pkg/config"
 	"testing"
 )
 
 func TestNewNotifyCenter(t *testing.T) {
 
-	config := config.GetConfig()
-	center := NewNotifyCenter(config.WhenSubSupplierInvalidWebHook)
+	center := NewNotifyCenter("https://www.baidu.com/")
 	center.Add("groupName", "Info asd 哈哈")
 	center.Send()
 }