Skip to content
Permalink
Browse files

Add some more content language test assertions

See #6136
  • Loading branch information...
bep committed Jul 30, 2019
1 parent 6eca0a3 commit 84bc8d84e4d2ec1fc94aee3113ebc570a28d1d16
Showing with 12 additions and 0 deletions.
  1. +12 −0 hugolib/language_content_dir_test.go
@@ -278,6 +278,18 @@ Content.
}
}

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]

0 comments on commit 84bc8d8

Please sign in to comment.
You can’t perform that action at this time.