hugolib: Add test case for empty Pages in regular pages

Fixes #2947
This commit is contained in:
Bjørn Erik Pedersen 2017-02-17 17:26:09 +01:00
parent 04a4a193a9
commit 53d07fb409

View file

@ -685,6 +685,10 @@ title = "Svenska"
require.Len(t, svPage.AllTranslations(), 3)
require.Equal(t, "en", svPage.Translations()[0].Lang())
// Regular pages have no children
require.Len(t, svPage.Pages, 0)
require.Len(t, svPage.Data["Pages"], 0)
}
func TestChangeDefaultLanguage(t *testing.T) {