aboutsummaryrefslogtreecommitdiff
path: root/notif_config_test.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2026-01-21 01:12:11 +0700
committerShulhan <ms@kilabit.info>2026-01-21 01:12:11 +0700
commitfa4cc3a2ae6fa63bfbd8b005e4048dacc222dcc1 (patch)
treeb5566fe088dc51364101ab1db2a48ed845a4d832 /notif_config_test.go
parentd0969869954c299c04ea58ab0fda1eba6a0350da (diff)
downloadlilin-fa4cc3a2ae6fa63bfbd8b005e4048dacc222dcc1.tar.xz
all: implement default down and up templates under section "[default"]
To minimize defining the same templates in notification, user can set default down and up templates under the default section.
Diffstat (limited to 'notif_config_test.go')
-rw-r--r--notif_config_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/notif_config_test.go b/notif_config_test.go
index b7990b1..4c63e60 100644
--- a/notif_config_test.go
+++ b/notif_config_test.go
@@ -41,8 +41,9 @@ func TestNotifConfig_init(t *testing.T) {
},
},
}}
+ cfg := &ServerConfig{}
for _, tc := range listCase {
- err := tc.config.init()
+ err := tc.config.init(cfg)
if err != nil {
test.Assert(t, ``, tc.expError, err.Error())
continue