Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit 39dd5bf

Browse files
committed
Fix middleware thunk test
1 parent 975ba2c commit 39dd5bf

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/__tests__/http-test.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1117,12 +1117,8 @@ function runTests(server: Server) {
11171117
app.get(
11181118
urlString(),
11191119
graphqlHTTP((req, res) => {
1120-
if (req) {
1121-
hasRequest = true;
1122-
}
1123-
if (res) {
1124-
hasResponse = true;
1125-
}
1120+
hasRequest = Boolean(req);
1121+
hasResponse = Boolean(res);
11261122
return { schema: TestSchema };
11271123
}),
11281124
);

0 commit comments

Comments
 (0)