Skip to content

Commit

Permalink
gqlgen: upgrade to v0.11.2
Browse files Browse the repository at this point in the history
  • Loading branch information
marwan-at-work committed Mar 7, 2020
1 parent 4ff8162 commit 79e45ef
Show file tree
Hide file tree
Showing 22 changed files with 521 additions and 572 deletions.
14 changes: 12 additions & 2 deletions e2e/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,18 @@ func TestTrafficJam(t *testing.T) {
req.Header.Add("Content-Type", "application/json")
h.ServeHTTP(w, req)

require.Equal(t, e2e.TrafficLight_GREEN, s.trafficJamReq.GetColor(), "Expected GraphQL request to populate Twirp Object")
require.Equal(t, []e2e.TrafficLight{e2e.TrafficLight_YELLOW, e2e.TrafficLight_RED}, s.trafficJamReq.GetTrafficLights(), "Expected repeated enums to be equal")
require.Equal(
t,
e2e.TrafficLight_GREEN,
s.trafficJamReq.GetColor(),
"Expected GraphQL request to populate Twirp Object",
)
require.Equal(
t,
[]e2e.TrafficLight{e2e.TrafficLight_YELLOW, e2e.TrafficLight_RED},
s.trafficJamReq.GetTrafficLights(),
"Expected repeated enums to be equal",
)

expected := `{"data":{"trafficJam":{"next":"YELLOW"}}}`

Expand Down
2 changes: 1 addition & 1 deletion e2e/twirpql/enums.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 79e45ef

Please sign in to comment.