mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-22 21:42:50 +02:00
Fixing test which erroneously checked values and order, rather than just values.
This commit is contained in:
@@ -11,6 +11,8 @@ func TestSitePossibleIndexes(t *testing.T) {
|
|||||||
site.Pages = append(site.Pages, page)
|
site.Pages = append(site.Pages, page)
|
||||||
indexes := site.possibleIndexes()
|
indexes := site.possibleIndexes()
|
||||||
if !compareStringSlice(indexes, []string{"tags", "categories"}) {
|
if !compareStringSlice(indexes, []string{"tags", "categories"}) {
|
||||||
|
if !compareStringSlice(indexes, []string{"categories", "tags"}) {
|
||||||
t.Fatalf("possible indexes do not match [tags categories]. Got: %s", indexes)
|
t.Fatalf("possible indexes do not match [tags categories]. Got: %s", indexes)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user