Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-03-18 00:03:27 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-03-18 00:03:27 +0300
commitb80853de90b10171155b8f3fde47d64ec7bfa0dd (patch)
tree435d3dbf7a495a0c6ce64c9769e037179aa0d27b /media/mediaType_test.go
parent423594e03a906ef4150f433666ff588b022c3c92 (diff)
all: gofmt -w -r 'interface{} -> any' .
Updates #9687
Diffstat (limited to 'media/mediaType_test.go')
-rw-r--r--media/mediaType_test.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/media/mediaType_test.go b/media/mediaType_test.go
index 2e32568f1..34571f7ee 100644
--- a/media/mediaType_test.go
+++ b/media/mediaType_test.go
@@ -231,15 +231,15 @@ func TestDecodeTypes(t *testing.T) {
tests := []struct {
name string
- maps []map[string]interface{}
+ maps []map[string]any
shouldError bool
assert func(t *testing.T, name string, tt Types)
}{
{
"Redefine JSON",
- []map[string]interface{}{
+ []map[string]any{
{
- "application/json": map[string]interface{}{
+ "application/json": map[string]any{
"suffixes": []string{"jasn"},
},
},
@@ -255,9 +255,9 @@ func TestDecodeTypes(t *testing.T) {
},
{
"MIME suffix in key, multiple file suffixes, custom delimiter",
- []map[string]interface{}{
+ []map[string]any{
{
- "application/hugo+hg": map[string]interface{}{
+ "application/hugo+hg": map[string]any{
"suffixes": []string{"hg1", "hG2"},
"Delimiter": "_",
},
@@ -281,9 +281,9 @@ func TestDecodeTypes(t *testing.T) {
},
{
"Add custom media type",
- []map[string]interface{}{
+ []map[string]any{
{
- "text/hugo+hgo": map[string]interface{}{
+ "text/hugo+hgo": map[string]any{
"Suffixes": []string{"hgo2"},
},
},