Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre Fenoll <[email protected]>
  • Loading branch information
fenollp committed Jun 9, 2023
1 parent 3639482 commit 184dbaf
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion openapi3/issue341_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,18 @@ func TestIssue341(t *testing.T) {

bs, err := doc.MarshalJSON()
require.NoError(t, err)
require.JSONEq(t, `{"info":{"title":"test file","version":"n/a"},"openapi":"3.0.0","paths":{"/testpath":{"$ref":"testpath.yaml#/paths/~1testpath"}}}`, string(bs))
require.JSONEq(t, `{
"info": {
"title": "test file",
"version": "n/a"
},
"openapi": "3.0.0",
"paths": {
"/testpath": {
"$ref": "testpath.yaml#/paths/~1testpath"
}
}
}`, string(bs))

require.Equal(t, "string", doc.
Paths.Value("/testpath").
Expand Down

0 comments on commit 184dbaf

Please sign in to comment.