mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
Fixing test which erroneously checked values and order, rather than just values.
This commit is contained in:
parent
44186c6af1
commit
ae15ff0968
1 changed files with 11 additions and 9 deletions
|
@ -11,6 +11,8 @@ func TestSitePossibleIndexes(t *testing.T) {
|
|||
site.Pages = append(site.Pages, page)
|
||||
indexes := site.possibleIndexes()
|
||||
if !compareStringSlice(indexes, []string{"tags", "categories"}) {
|
||||
if !compareStringSlice(indexes, []string{"categories", "tags"}) {
|
||||
t.Fatalf("possible indexes do not match [tags categories]. Got: %s", indexes)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue