Fix some humanize issues

Fixes #7912
This commit is contained in:
susiwen8
2021-02-15 01:30:59 +08:00
committed by GitHub
parent 5f621df257
commit bf55afd71f
6 changed files with 13 additions and 12 deletions

View File

@@ -22,12 +22,11 @@ import (
"strings"
"testing"
"github.com/gobuffalo/flect"
"github.com/gohugoio/hugo/publisher"
"github.com/spf13/viper"
"github.com/markbates/inflect"
qt "github.com/frankban/quicktest"
"github.com/gohugoio/hugo/deps"
"github.com/gohugoio/hugo/resources/page"
@@ -487,7 +486,7 @@ func doTestSectionNaming(t *testing.T, canonify, uglify, pluralize bool) {
for _, test := range tests {
if test.pluralAware && pluralize {
test.expected = inflect.Pluralize(test.expected)
test.expected = flect.Pluralize(test.expected)
}
th.assertFileContent(filepath.Join("public", test.doc), test.expected)