Skip to content

Commit

Permalink
empty string fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-ramon committed Aug 5, 2017
1 parent 5425913 commit 2ddab1a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions executor_resolve_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ func TestExecutesResolveFunction_UsesProvidedResolveFunction_SourceIsStruct_With

expected := map[string]interface{}{
"test": map[string]interface{}{
"Str": nil,
"Str": "",
"Int": 0,
},
}
Expand Down Expand Up @@ -223,7 +223,7 @@ func TestExecutesResolveFunction_UsesProvidedResolveFunction_SourceIsStruct_With

expected := map[string]interface{}{
"test": map[string]interface{}{
"str": nil,
"str": "",
"int": 0,
},
}
Expand Down
18 changes: 9 additions & 9 deletions introspection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func TestIntrospection_ExecutesAnIntrospectionQuery(t *testing.T) {
"name": "__Type",
},
"isDeprecated": false,
"deprecationReason": nil,
"deprecationReason": "",
},
map[string]interface{}{
"name": "directives",
Expand Down Expand Up @@ -646,7 +646,7 @@ func TestIntrospection_ExecutesAnIntrospectionQuery(t *testing.T) {
},
},
"isDeprecated": false,
"deprecationReason": nil,
"deprecationReason": "",
},
map[string]interface{}{
"name": "args",
Expand Down Expand Up @@ -731,37 +731,37 @@ func TestIntrospection_ExecutesAnIntrospectionQuery(t *testing.T) {
map[string]interface{}{
"name": "QUERY",
"isDeprecated": false,
"deprecationReason": nil,
"deprecationReason": "",
},
map[string]interface{}{
"name": "MUTATION",
"isDeprecated": false,
"deprecationReason": nil,
"deprecationReason": "",
},
map[string]interface{}{
"name": "SUBSCRIPTION",
"isDeprecated": false,
"deprecationReason": nil,
"deprecationReason": "",
},
map[string]interface{}{
"name": "FIELD",
"isDeprecated": false,
"deprecationReason": nil,
"deprecationReason": "",
},
map[string]interface{}{
"name": "FRAGMENT_DEFINITION",
"isDeprecated": false,
"deprecationReason": nil,
"deprecationReason": "",
},
map[string]interface{}{
"name": "FRAGMENT_SPREAD",
"isDeprecated": false,
"deprecationReason": nil,
"deprecationReason": "",
},
map[string]interface{}{
"name": "INLINE_FRAGMENT",
"isDeprecated": false,
"deprecationReason": nil,
"deprecationReason": "",
},
},
"possibleTypes": nil,
Expand Down

0 comments on commit 2ddab1a

Please sign in to comment.