Skip to content

Commit 9239559

Browse files
fix the test from #308 a better way, now that I remember this behavior is intended
1 parent bf7442b commit 9239559

File tree

2 files changed

+460
-0
lines changed

2 files changed

+460
-0
lines changed

generate/generate_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ func TestGenerateWithConfig(t *testing.T) {
243243
{"OptionalPointerOmitEmpty", "", []string{
244244
"InputObject.graphql",
245245
"PointersOmitEmpty.graphql",
246+
"Omitempty.graphql",
246247
"ListInput.graphql",
247248
}, &Config{
248249
Optional: "pointer_omitempty",
@@ -257,6 +258,7 @@ func TestGenerateWithConfig(t *testing.T) {
257258
Marshaler: "github.com/Khan/genqlient/internal/testutil.MarshalDate",
258259
Unmarshaler: "github.com/Khan/genqlient/internal/testutil.UnmarshalDate",
259260
},
261+
"PokemonInput": {Type: "github.com/Khan/genqlient/internal/testutil.Pokemon"},
260262
},
261263
}},
262264
{

0 commit comments

Comments
 (0)