aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/hugo_sites_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2016-08-04 12:06:29 +0200
committerBjørn Erik Pedersen <[email protected]>2016-09-06 18:32:17 +0300
commitf0b91852ea5e5d3ec985286751f17e34bfc6c7bc (patch)
tree78f4df9fbb03b836638a138cf49dd18992fdd461 /hugolib/hugo_sites_test.go
parented0985404db4630d1b9d3ad0b7e41fb186ae0112 (diff)
downloadhugo-f0b91852ea5e5d3ec985286751f17e34bfc6c7bc.tar.gz
hugo-f0b91852ea5e5d3ec985286751f17e34bfc6c7bc.zip
Rework the multilingual docs
And in the same go adjusted some minor parts of the language API: Add LanguagePrefix alias to Node and rename the Multilingual config section to Languages. See #2309
Diffstat (limited to 'hugolib/hugo_sites_test.go')
-rw-r--r--hugolib/hugo_sites_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/hugolib/hugo_sites_test.go b/hugolib/hugo_sites_test.go
index b63792a3b..aa8575075 100644
--- a/hugolib/hugo_sites_test.go
+++ b/hugolib/hugo_sites_test.go
@@ -48,7 +48,7 @@ func testCommonResetState() {
}
-func _TestMultiSites(t *testing.T) {
+func TestMultiSites(t *testing.T) {
sites := createMultiTestSites(t)
@@ -65,7 +65,7 @@ func _TestMultiSites(t *testing.T) {
if len(enSite.Pages) != 3 {
t.Fatal("Expected 3 english pages")
}
- assert.Len(t, enSite.Source.Files(), 6, "should have 6 source files")
+ assert.Len(t, enSite.Source.Files(), 11, "should have 11 source files")
assert.Len(t, enSite.AllPages, 6, "should have 6 total pages (including translations)")
doc1en := enSite.Pages[0]