Skip to content

Commit

Permalink
Add context test for a GET (body) request #44
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcel Ludwig committed Oct 20, 2020
1 parent 3239f19 commit 03b3945
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions eval/context_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ func TestNewHTTPContext(t *testing.T) {
method = req.method
title = req.json_body.obj_slice
`, expMap{"title": "", "method": http.MethodPatch}},
{"Variables / GET /w json body", http.MethodGet, header{"Content-Type": "application/json"}, bytes.NewBufferString(`{"slice": [1, 2, 3]}`), "", baseCtx, `
method = req.method
title = req.json_body.obj_slice
`, expMap{"title": "", "method": http.MethodGet}},
}

log, _ := test.NewNullLogger()
Expand Down

0 comments on commit 03b3945

Please sign in to comment.