Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
lolopinto committed Jul 19, 2022
1 parent a302385 commit aa80d2f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions internal/graphql/graphql_fields_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,12 @@ func TestActionWithFieldEdgeFieldConfig(t *testing.T) {

verifyFieldsOverlap(t, createAction, editActionCfg)

createNode := buildActionInputNode(processor, profileCfg.NodeData, createAction)
createNode, err := buildActionInputNode(processor, profileCfg.NodeData, createAction)
require.Nil(t, err)
assert.Len(t, createNode.Fields, len(createAction.GetFields())+len(createAction.GetNonEntFields()))

editNode := buildActionInputNode(processor, profileCfg.NodeData, editAction)
editNode, err := buildActionInputNode(processor, profileCfg.NodeData, editAction)
require.Nil(t, err)
assert.Len(t, editNode.Fields, len(editAction.GetFields())+len(editAction.GetNonEntFields())+1)
}

Expand Down

0 comments on commit aa80d2f

Please sign in to comment.