fix tests
This commit is contained in:
@@ -170,7 +170,7 @@ func TestTypeForOperation(t *testing.T) {
|
|||||||
t.Fatalf("got %v operations, want 1", len(queryDoc.Operations))
|
t.Fatalf("got %v operations, want 1", len(queryDoc.Operations))
|
||||||
}
|
}
|
||||||
|
|
||||||
g := newGenerator("test_package", schema)
|
g := newGenerator(&Config{Package: "test_package"}, schema)
|
||||||
_, err = g.getTypeForOperation(queryDoc.Operations[0])
|
_, err = g.getTypeForOperation(queryDoc.Operations[0])
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Error(err)
|
t.Error(err)
|
||||||
@@ -253,7 +253,7 @@ func TestTypeForInputType(t *testing.T) {
|
|||||||
t.Fatal(graphqlListError)
|
t.Fatal(graphqlListError)
|
||||||
}
|
}
|
||||||
|
|
||||||
g := newGenerator("test_package", schema)
|
g := newGenerator(&Config{Package: "test_package"}, schema)
|
||||||
goType, err := g.getTypeForInputType(
|
goType, err := g.getTypeForInputType(
|
||||||
queryDoc.Operations[0].VariableDefinitions[0].Type)
|
queryDoc.Operations[0].VariableDefinitions[0].Type)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user