mirror of
https://github.com/gohugoio/hugo.git
synced 2025-03-20 09:22:29 +00:00
Fix typo in test
This commit is contained in:
parent
bee1358e48
commit
be15b07733
1 changed files with 2 additions and 2 deletions
|
@ -274,7 +274,7 @@ func TestExtractShortcodes(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if this.expectShortCodes != "" {
|
if this.expectShortCodes != "" {
|
||||||
shortCodesAsStr := fmt.Sprintf("map%q", collectAndShortShortcodes(shortCodes))
|
shortCodesAsStr := fmt.Sprintf("map%q", collectAndSortShortcodes(shortCodes))
|
||||||
if !strings.Contains(shortCodesAsStr, this.expectShortCodes) {
|
if !strings.Contains(shortCodesAsStr, this.expectShortCodes) {
|
||||||
t.Fatalf("[%d] %s: Short codes not as expected, got %s - expected to contain %s", i, this.name, shortCodesAsStr, this.expectShortCodes)
|
t.Fatalf("[%d] %s: Short codes not as expected, got %s - expected to contain %s", i, this.name, shortCodesAsStr, this.expectShortCodes)
|
||||||
}
|
}
|
||||||
|
@ -282,7 +282,7 @@ func TestExtractShortcodes(t *testing.T) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func collectAndShortShortcodes(shortcodes map[string]shortcode) []string {
|
func collectAndSortShortcodes(shortcodes map[string]shortcode) []string {
|
||||||
var asArray []string
|
var asArray []string
|
||||||
|
|
||||||
for key, sc := range shortcodes {
|
for key, sc := range shortcodes {
|
||||||
|
|
Loading…
Reference in a new issue