test(sitestore): fix site store not inited

This commit is contained in:
hexxa 2021-10-09 21:42:09 +08:00 committed by Hexxa
parent 1fa868ed95
commit 476e231639

View file

@ -51,6 +51,18 @@ func TestSiteStore(t *testing.T) {
if err != nil {
t.Fatal("fail to new kvstore", err)
}
err = store.Init(&SiteConfig{
ClientCfg: &ClientConfig{
SiteName: "",
SiteDesc: "",
Bg: &BgConfig{
Url: "",
Repeat: "",
Position: "",
Align: "",
},
},
})
testSiteMethods(t, store)
})