From: Bjørn Erik Pedersen Date: Wed, 21 Dec 2016 09:17:05 +0000 (+0100) Subject: hugolib: Add a test assertion for IsTranslated X-Git-Tag: v0.19~195 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=1881f60a;p=brevno-suite%2Fhugo hugolib: Add a test assertion for IsTranslated See #2812 --- diff --git a/hugolib/hugo_sites_build_test.go b/hugolib/hugo_sites_build_test.go index 59670dd3..242774a9 100644 --- a/hugolib/hugo_sites_build_test.go +++ b/hugolib/hugo_sites_build_test.go @@ -213,6 +213,8 @@ func doTestMultiSitesBuild(t *testing.T, configTemplate, configSuffix string) { } enSite := sites.Sites[0] + enSiteHome := enSite.getPage(KindHome) + require.True(t, enSiteHome.IsTranslated()) assert.Equal(t, "en", enSite.Language.Lang)