Remember to init the emojis.

Init the parser tests properly.
This commit is contained in:
Azareal 2019-07-11 17:20:33 +10:00
parent 1d13330a06
commit 462464e47e
2 changed files with 16 additions and 0 deletions

View File

@ -134,11 +134,19 @@ func storeInit() (err error) {
if err != nil {
return errors.WithStack(err)
}
/*c.Convos, err = c.NewDefaultConversationStore(acc)
if err != nil {
return errors.WithStack(err)
}*/
err = phrases.InitPhrases(c.Site.Language)
if err != nil {
return errors.WithStack(err)
}
err = c.InitEmoji()
if err != nil {
return errors.WithStack(err)
}
log.Print("Loading the static files.")
err = c.Themes.LoadStaticFiles()

View File

@ -9,6 +9,10 @@ import (
)
func TestPreparser(t *testing.T) {
miscinit(t)
if !c.PluginsInited {
c.InitPlugins()
}
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
@ -131,6 +135,10 @@ func TestPreparser(t *testing.T) {
}
func TestParser(t *testing.T) {
miscinit(t)
if !c.PluginsInited {
c.InitPlugins()
}
var msgList = &METriList{nil}
url := "github.com/Azareal/Gosora"