mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
parent
04a4a193a9
commit
53d07fb409
1 changed files with 4 additions and 0 deletions
|
@ -685,6 +685,10 @@ title = "Svenska"
|
||||||
require.Len(t, svPage.AllTranslations(), 3)
|
require.Len(t, svPage.AllTranslations(), 3)
|
||||||
require.Equal(t, "en", svPage.Translations()[0].Lang())
|
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) {
|
func TestChangeDefaultLanguage(t *testing.T) {
|
||||||
|
|
Loading…
Reference in a new issue