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

Commit baa2561

Browse files
kyarikIvanGoncharov
authored andcommitted
Remove duplicated test it('will send request and response when using thunk')
There is already another test which tests that the options function is passed the request and response: it('provides an options function with arguments').
1 parent 8194ae6 commit baa2561

File tree

1 file changed

+2
-21
lines changed

1 file changed

+2
-21
lines changed

src/__tests__/http-test.ts

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,27 +1111,6 @@ function runTests(server: Server) {
11111111
});
11121112
});
11131113

1114-
it('will send request and response when using thunk', async () => {
1115-
const app = server();
1116-
1117-
let seenRequest;
1118-
let seenResponse;
1119-
1120-
app.get(
1121-
urlString(),
1122-
graphqlHTTP((req, res) => {
1123-
seenRequest = req;
1124-
seenResponse = res;
1125-
return { schema: TestSchema };
1126-
}),
1127-
);
1128-
1129-
await app.request().get(urlString({ query: '{ test }' }));
1130-
1131-
expect(seenRequest).to.not.equal(undefined);
1132-
expect(seenResponse).to.not.equal(undefined);
1133-
});
1134-
11351114
describe('Error handling functionality', () => {
11361115
it('handles field errors caught by GraphQL', async () => {
11371116
const app = server();
@@ -2225,8 +2204,10 @@ function runTests(server: Server) {
22252204
expect(response.text).to.equal('{"data":{"test":"Hello World"}}');
22262205
expect(seenParseArgs).property('body', '----');
22272206
});
2207+
22282208
it('can throw errors', async () => {
22292209
const app = server();
2210+
22302211
app.get(
22312212
urlString(),
22322213
graphqlHTTP(() => ({

0 commit comments

Comments
 (0)