mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-15 20:44:01 +02:00
Revert "deps: Update to github.com/tdewolff/minify v2.9.4"
Closes #7792
This reverts commit b254532b52
.
This commit is contained in:
@@ -34,7 +34,7 @@ func TestNew(t *testing.T) {
|
||||
var rawJS string
|
||||
var minJS string
|
||||
rawJS = " var foo =1 ; foo ++ ; "
|
||||
minJS = "var foo=1;foo++"
|
||||
minJS = "var foo=1;foo++;"
|
||||
|
||||
var rawJSON string
|
||||
var minJSON string
|
||||
@@ -168,26 +168,3 @@ func TestBugs(t *testing.T) {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Renamed to Precision in v2.7.0. Check that we support both.
|
||||
func TestDecodeConfigDecimalIsNowPrecision(t *testing.T) {
|
||||
c := qt.New(t)
|
||||
v := viper.New()
|
||||
v.Set("minify", map[string]interface{}{
|
||||
"disablexml": true,
|
||||
"tdewolff": map[string]interface{}{
|
||||
"css": map[string]interface{}{
|
||||
"decimal": 3,
|
||||
},
|
||||
"svg": map[string]interface{}{
|
||||
"decimal": 3,
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
conf, err := decodeConfig(v)
|
||||
|
||||
c.Assert(err, qt.IsNil)
|
||||
c.Assert(conf.Tdewolff.CSS.Precision, qt.Equals, 3)
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user