aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/pages_related_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'hugolib/pages_related_test.go')
-rw-r--r--hugolib/pages_related_test.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/hugolib/pages_related_test.go b/hugolib/pages_related_test.go
index 8759d8f0f..ed8d9df9d 100644
--- a/hugolib/pages_related_test.go
+++ b/hugolib/pages_related_test.go
@@ -54,22 +54,22 @@ Content
assert.NoError(err)
assert.Len(result, 2)
- assert.Equal("Page 2", result[0].Title)
- assert.Equal("Page 1", result[1].Title)
+ assert.Equal("Page 2", result[0].title)
+ assert.Equal("Page 1", result[1].title)
result, err = s.RegularPages.Related(s.RegularPages[0])
assert.Len(result, 2)
- assert.Equal("Page 2", result[0].Title)
- assert.Equal("Page 3", result[1].Title)
+ assert.Equal("Page 2", result[0].title)
+ assert.Equal("Page 3", result[1].title)
result, err = s.RegularPages.RelatedIndices(s.RegularPages[0], "keywords")
assert.Len(result, 2)
- assert.Equal("Page 2", result[0].Title)
- assert.Equal("Page 3", result[1].Title)
+ assert.Equal("Page 2", result[0].title)
+ assert.Equal("Page 3", result[1].title)
result, err = s.RegularPages.RelatedTo(types.NewKeyValuesStrings("keywords", "bep", "rocks"))
assert.NoError(err)
assert.Len(result, 2)
- assert.Equal("Page 2", result[0].Title)
- assert.Equal("Page 3", result[1].Title)
+ assert.Equal("Page 2", result[0].title)
+ assert.Equal("Page 3", result[1].title)
}