fix gofmt error

This commit is contained in:
ahmad.zo 2024-01-30 11:23:41 +03:30
parent 0c7281624e
commit 0283498ab4

View File

@ -656,7 +656,7 @@ func TestPlaintext(t *testing.T) {
"schema": map[string]any{ "schema": map[string]any{
"type": "string", "type": "string",
"description": "a description that should not be printed", "description": "a description that should not be printed",
"enum": []any{}, "enum": []int{},
}, },
}, },
Checks: []check{ Checks: []check{
@ -671,9 +671,9 @@ func TestPlaintext(t *testing.T) {
"schema": map[string]any{ "schema": map[string]any{
"type": "string", "type": "string",
"description": "a description that should not be printed", "description": "a description that should not be printed",
"enum": []any{1, 2, 3}, "enum": []int{1, 2, 3},
}, },
"singleView": true, "singleView": true,
}, },
Checks: []check{ Checks: []check{
checkEquals("ENUM: 1, 2, 3"), checkEquals("ENUM: 1, 2, 3"),
@ -687,9 +687,9 @@ func TestPlaintext(t *testing.T) {
"schema": map[string]any{ "schema": map[string]any{
"type": "string", "type": "string",
"description": "a description that should not be printed", "description": "a description that should not be printed",
"enum": []any{1, 2, 3}, "enum": []int{1, 2, 3},
}, },
"singleView": false, "singleView": false,
}, },
Checks: []check{ Checks: []check{
checkEquals(" enum: 1, 2, 3"), checkEquals(" enum: 1, 2, 3"),