Skip to content

Commit

Permalink
fix : test equal
Browse files Browse the repository at this point in the history
  • Loading branch information
seipan committed Sep 3, 2023
1 parent a355672 commit 5d3c677
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions parse_openapi_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,17 @@ package bluma
import (
"context"
"testing"

"github.com/stretchr/testify/assert"
)

func TestParseOpenAPI(t *testing.T) {
t.Run("ParseOpenAPI", func(t *testing.T) {
t.Skip()
o := NewOpenAPI("testdata/openapi.yaml")
o.Parse(context.Background())
o := NewOpenAPI("testdata/openapi.json")
res, err := o.Parse(context.Background())
assert.NoError(t, err)

assert.Equal(t, "GET", res[0].method[0].method)
assert.Equal(t, "/health", res[0].Path())
})
}

0 comments on commit 5d3c677

Please sign in to comment.