Skip to content

Commit

Permalink
Update playground tests with playground configuration
Browse files Browse the repository at this point in the history
Format tests with gofmt

(cherry picked from commit 3afa9bf)
  • Loading branch information
raphaelzoellner committed Mar 14, 2021
1 parent a3ff0db commit 51cc737
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions graphcoolPlayground_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,11 @@ func TestRenderPlayground(t *testing.T) {
req.Header.Set("Accept", tc.accept)

h := handler.New(&handler.Config{
Schema: &testutil.StarWarsSchema,
GraphiQL: false,
Playground: tc.playgroundEnabled,
Schema: &testutil.StarWarsSchema,
GraphiQL: false,
Playground: &handler.PlaygroundConfig{
Enabled: tc.playgroundEnabled,
},
})

rr := httptest.NewRecorder()
Expand Down
2 changes: 1 addition & 1 deletion handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ func TestHandler_BasicQuery_WithFormatErrorFn(t *testing.T) {
customFormattedError := gqlerrors.FormattedError{
Message: resolverError.Error(),
Locations: []location.SourceLocation{
location.SourceLocation{
{
Line: 1,
Column: 2,
},
Expand Down

0 comments on commit 51cc737

Please sign in to comment.