Remember to init the emojis.
Init the parser tests properly.
This commit is contained in:
parent
1d13330a06
commit
462464e47e
8
main.go
8
main.go
|
@ -134,11 +134,19 @@ func storeInit() (err error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return errors.WithStack(err)
|
return errors.WithStack(err)
|
||||||
}
|
}
|
||||||
|
/*c.Convos, err = c.NewDefaultConversationStore(acc)
|
||||||
|
if err != nil {
|
||||||
|
return errors.WithStack(err)
|
||||||
|
}*/
|
||||||
|
|
||||||
err = phrases.InitPhrases(c.Site.Language)
|
err = phrases.InitPhrases(c.Site.Language)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return errors.WithStack(err)
|
return errors.WithStack(err)
|
||||||
}
|
}
|
||||||
|
err = c.InitEmoji()
|
||||||
|
if err != nil {
|
||||||
|
return errors.WithStack(err)
|
||||||
|
}
|
||||||
|
|
||||||
log.Print("Loading the static files.")
|
log.Print("Loading the static files.")
|
||||||
err = c.Themes.LoadStaticFiles()
|
err = c.Themes.LoadStaticFiles()
|
||||||
|
|
|
@ -9,6 +9,10 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestPreparser(t *testing.T) {
|
func TestPreparser(t *testing.T) {
|
||||||
|
miscinit(t)
|
||||||
|
if !c.PluginsInited {
|
||||||
|
c.InitPlugins()
|
||||||
|
}
|
||||||
var msgList = &METriList{nil}
|
var msgList = &METriList{nil}
|
||||||
|
|
||||||
// Note: The open tag is evaluated without knowledge of the close tag for efficiency and simplicity, so the parser autofills the associated close tag when it finds an open tag without a partner
|
// Note: The open tag is evaluated without knowledge of the close tag for efficiency and simplicity, so the parser autofills the associated close tag when it finds an open tag without a partner
|
||||||
|
@ -131,6 +135,10 @@ func TestPreparser(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestParser(t *testing.T) {
|
func TestParser(t *testing.T) {
|
||||||
|
miscinit(t)
|
||||||
|
if !c.PluginsInited {
|
||||||
|
c.InitPlugins()
|
||||||
|
}
|
||||||
var msgList = &METriList{nil}
|
var msgList = &METriList{nil}
|
||||||
|
|
||||||
url := "github.com/Azareal/Gosora"
|
url := "github.com/Azareal/Gosora"
|
||||||
|
|
Loading…
Reference in New Issue