Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
K-Phoen committed Oct 7, 2023
1 parent 9e3d7bf commit 56fc36a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions internal/openapi/generator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func TestArrays(t *testing.T) {
require.NoError(t, err)

require.Len(t, f.Objects, 2)
def := f.LocateDefinition("Arrays")
def := f.LocateObject("Arrays")
assert.Equal(t, def.Type.Kind, ast.KindStruct)

structType := def.Type.AsStruct()
Expand Down Expand Up @@ -184,7 +184,7 @@ func TestRefs(t *testing.T) {
require.NoError(t, err)

require.Len(t, f.Objects, 2)
def := f.LocateDefinition("Refs")
def := f.LocateObject("Refs")
assert.Equal(t, def.Type.Kind, ast.KindStruct)

structType := def.Type.AsStruct()
Expand Down
3 changes: 2 additions & 1 deletion internal/veneers/rewrite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,8 @@ func TestRewriter_ApplyTo(t *testing.T) {
expectedBuildersJSON := mustMarshalJSON(t, tc.outputBuilders)

// apply the rewrite rules
rewrittenBuilders := rewriter.ApplyTo(tc.inputBuilders)
rewrittenBuilders, err := rewriter.ApplyTo(tc.inputBuilders)
req.NoError(err)

// save the output states
originalBuildersJSONAfterApply := mustMarshalJSON(t, tc.inputBuilders)
Expand Down

0 comments on commit 56fc36a

Please sign in to comment.