ref: 84bc8d84e4d2ec1fc94aee3113ebc570a28d1d16
parent: 6eca0a3dee77f0e764b1de2e10c10ec2b7cf8ef1
author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
date: Tue Jul 30 05:58:58 EDT 2019
Add some more content language test assertions See #6136
--- a/hugolib/language_content_dir_test.go
+++ b/hugolib/language_content_dir_test.go
@@ -278,6 +278,18 @@
}
}
+ for i, p := range nnSite.RegularPages() {
+ msg := fmt.Sprintf("Test %d", i+1)
+ assert.Equal("nn", p.Language().Lang, msg)
+ assert.Contains(p.Title(), "nn", msg)
+ }
+
+ for i, p := range svSite.RegularPages() {
+ msg := fmt.Sprintf("Test %d", i+1)
+ assert.Equal("sv", p.Language().Lang, msg)
+ assert.Contains(p.Title(), "sv", msg)
+ }
+
// Check bundles
bundleEn := enSite.RegularPages()[len(enSite.RegularPages())-1]
bundleNn := nnSite.RegularPages()[len(nnSite.RegularPages())-1]