Skip to content

Commit 2ddab1a

Browse files
committed
empty string fixes
1 parent 5425913 commit 2ddab1a

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

executor_resolve_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ func TestExecutesResolveFunction_UsesProvidedResolveFunction_SourceIsStruct_With
147147

148148
expected := map[string]interface{}{
149149
"test": map[string]interface{}{
150-
"Str": nil,
150+
"Str": "",
151151
"Int": 0,
152152
},
153153
}
@@ -223,7 +223,7 @@ func TestExecutesResolveFunction_UsesProvidedResolveFunction_SourceIsStruct_With
223223

224224
expected := map[string]interface{}{
225225
"test": map[string]interface{}{
226-
"str": nil,
226+
"str": "",
227227
"int": 0,
228228
},
229229
}

introspection_test.go

+9-9
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ func TestIntrospection_ExecutesAnIntrospectionQuery(t *testing.T) {
102102
"name": "__Type",
103103
},
104104
"isDeprecated": false,
105-
"deprecationReason": nil,
105+
"deprecationReason": "",
106106
},
107107
map[string]interface{}{
108108
"name": "directives",
@@ -646,7 +646,7 @@ func TestIntrospection_ExecutesAnIntrospectionQuery(t *testing.T) {
646646
},
647647
},
648648
"isDeprecated": false,
649-
"deprecationReason": nil,
649+
"deprecationReason": "",
650650
},
651651
map[string]interface{}{
652652
"name": "args",
@@ -731,37 +731,37 @@ func TestIntrospection_ExecutesAnIntrospectionQuery(t *testing.T) {
731731
map[string]interface{}{
732732
"name": "QUERY",
733733
"isDeprecated": false,
734-
"deprecationReason": nil,
734+
"deprecationReason": "",
735735
},
736736
map[string]interface{}{
737737
"name": "MUTATION",
738738
"isDeprecated": false,
739-
"deprecationReason": nil,
739+
"deprecationReason": "",
740740
},
741741
map[string]interface{}{
742742
"name": "SUBSCRIPTION",
743743
"isDeprecated": false,
744-
"deprecationReason": nil,
744+
"deprecationReason": "",
745745
},
746746
map[string]interface{}{
747747
"name": "FIELD",
748748
"isDeprecated": false,
749-
"deprecationReason": nil,
749+
"deprecationReason": "",
750750
},
751751
map[string]interface{}{
752752
"name": "FRAGMENT_DEFINITION",
753753
"isDeprecated": false,
754-
"deprecationReason": nil,
754+
"deprecationReason": "",
755755
},
756756
map[string]interface{}{
757757
"name": "FRAGMENT_SPREAD",
758758
"isDeprecated": false,
759-
"deprecationReason": nil,
759+
"deprecationReason": "",
760760
},
761761
map[string]interface{}{
762762
"name": "INLINE_FRAGMENT",
763763
"isDeprecated": false,
764-
"deprecationReason": nil,
764+
"deprecationReason": "",
765765
},
766766
},
767767
"possibleTypes": nil,

0 commit comments

Comments
 (0)