mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
Remove kr/pretty dependency
Fixes #2124 See https://github.com/kr/text/issues/6
This commit is contained in:
parent
fd40fe39bc
commit
608cfe62cf
1 changed files with 2 additions and 3 deletions
|
@ -21,7 +21,6 @@ import (
|
|||
"path/filepath"
|
||||
|
||||
"github.com/BurntSushi/toml"
|
||||
"github.com/kr/pretty"
|
||||
"github.com/spf13/hugo/hugofs"
|
||||
"github.com/spf13/hugo/source"
|
||||
"github.com/spf13/viper"
|
||||
|
@ -576,13 +575,13 @@ func TestHomeNodeMenu(t *testing.T) {
|
|||
|
||||
if isMenuCurrent != this.isMenuCurrent {
|
||||
fmt.Println("isMenuCurrent", isMenuCurrent)
|
||||
pretty.Println("this:", this)
|
||||
fmt.Printf("this: %#v\n", this)
|
||||
t.Errorf("[%d] Wrong result from IsMenuCurrent: %v for %q", i, isMenuCurrent, this.menu)
|
||||
}
|
||||
|
||||
if hasMenuCurrent != this.hasMenuCurrent {
|
||||
fmt.Println("hasMenuCurrent", hasMenuCurrent)
|
||||
pretty.Println("this:", this)
|
||||
fmt.Printf("this: %#v\n", this)
|
||||
t.Errorf("[%d] Wrong result for menu %q menuItem %v for HasMenuCurrent: %v", i, this.menu, this.menuItem, hasMenuCurrent)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue