mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-30 22:39:58 +02:00
hugolib: Fix output format handling of mix cased page kinds
Fixes #4528
This commit is contained in:
@@ -28,4 +28,10 @@ func TestKind(t *testing.T) {
|
||||
require.Equal(t, "taxonomy", KindTaxonomy)
|
||||
require.Equal(t, "taxonomyTerm", KindTaxonomyTerm)
|
||||
|
||||
require.Equal(t, KindTaxonomyTerm, GetKind("TAXONOMYTERM"))
|
||||
require.Equal(t, KindTaxonomy, GetKind("Taxonomy"))
|
||||
require.Equal(t, KindPage, GetKind("Page"))
|
||||
require.Equal(t, KindHome, GetKind("Home"))
|
||||
require.Equal(t, KindSection, GetKind("SEction"))
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user