mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +02:00
all: gofmt -s
This commit is contained in:
@@ -145,7 +145,7 @@ func TestDecodeFormats(t *testing.T) {
|
||||
{
|
||||
"Redefine JSON",
|
||||
[]map[string]interface{}{
|
||||
map[string]interface{}{
|
||||
{
|
||||
"JsON": map[string]interface{}{
|
||||
"baseName": "myindex",
|
||||
"isPlainText": "false"}}},
|
||||
@@ -161,7 +161,7 @@ func TestDecodeFormats(t *testing.T) {
|
||||
{
|
||||
"Add XML format with string as mediatype",
|
||||
[]map[string]interface{}{
|
||||
map[string]interface{}{
|
||||
{
|
||||
"MYXMLFORMAT": map[string]interface{}{
|
||||
"baseName": "myxml",
|
||||
"mediaType": "application/xml",
|
||||
@@ -182,7 +182,7 @@ func TestDecodeFormats(t *testing.T) {
|
||||
{
|
||||
"Add format unknown mediatype",
|
||||
[]map[string]interface{}{
|
||||
map[string]interface{}{
|
||||
{
|
||||
"MYINVALID": map[string]interface{}{
|
||||
"baseName": "mymy",
|
||||
"mediaType": "application/hugo",
|
||||
@@ -194,12 +194,12 @@ func TestDecodeFormats(t *testing.T) {
|
||||
{
|
||||
"Add and redefine XML format",
|
||||
[]map[string]interface{}{
|
||||
map[string]interface{}{
|
||||
{
|
||||
"MYOTHERXMLFORMAT": map[string]interface{}{
|
||||
"baseName": "myotherxml",
|
||||
"mediaType": media.XMLType,
|
||||
}},
|
||||
map[string]interface{}{
|
||||
{
|
||||
"MYOTHERXMLFORMAT": map[string]interface{}{
|
||||
"baseName": "myredefined",
|
||||
}},
|
||||
|
Reference in New Issue
Block a user