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
path: root/media
diff options
context:
space:
mode:
Diffstat (limited to 'media')
-rw-r--r--media/mediaType_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/media/mediaType_test.go b/media/mediaType_test.go
index a6b18d1d6..ffef07b80 100644
--- a/media/mediaType_test.go
+++ b/media/mediaType_test.go
@@ -89,7 +89,7 @@ func TestDecodeTypes(t *testing.T) {
{
"Redefine JSON",
[]map[string]interface{}{
- map[string]interface{}{
+ {
"application/json": map[string]interface{}{
"suffix": "jsn"}}},
false,
@@ -102,7 +102,7 @@ func TestDecodeTypes(t *testing.T) {
{
"Add custom media type",
[]map[string]interface{}{
- map[string]interface{}{
+ {
"text/hugo": map[string]interface{}{
"suffix": "hgo"}}},
false,
@@ -119,7 +119,7 @@ func TestDecodeTypes(t *testing.T) {
{
"Add media type invalid key",
[]map[string]interface{}{
- map[string]interface{}{
+ {
"text/hugo+hgo": map[string]interface{}{}}},
true,
func(t *testing.T, name string, tt Types) {