Skip to content

Commit

Permalink
chore: cleanup generics_test.go (#1231)
Browse files Browse the repository at this point in the history
  • Loading branch information
ubogdan authored Jun 16, 2022
1 parent b736c5f commit f09eaa1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions generics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ package swag

import (
"encoding/json"
"os"
"testing"

"github.com/stretchr/testify/assert"
Expand Down Expand Up @@ -204,7 +203,7 @@ func TestParseGenericsBasic(t *testing.T) {
p := New()
err := p.ParseAPI(searchDir, mainAPIFile, defaultParseDepth)
assert.NoError(t, err)
b, _ := json.MarshalIndent(p.swagger, "", " ")
os.WriteFile("testdata/generics_basic/swagger.json", b, 0644)
b, err := json.MarshalIndent(p.swagger, "", " ")
assert.NoError(t, err)
assert.Equal(t, expected, string(b))
}

0 comments on commit f09eaa1

Please sign in to comment.