Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
Moumouls committed Oct 29, 2023
1 parent c6a0e74 commit 1c23533
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions spec/ParseGraphQLServer.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ const { ParseGraphQLServer } = require('../lib/GraphQL/ParseGraphQLServer');
const { ReadPreference, Collection } = require('mongodb');
const { v4: uuidv4 } = require('uuid');

const testAgent = new http.Agent();

function handleError(e) {
if (e && e.networkError && e.networkError.result && e.networkError.result.errors) {
fail(e.networkError.result.errors);
Expand Down Expand Up @@ -6872,6 +6874,7 @@ describe('ParseGraphQLServer', () => {
method: 'POST',
headers,
body,
agent: testAgent,
});

expect(res.status).toEqual(200);
Expand Down Expand Up @@ -9335,6 +9338,7 @@ describe('ParseGraphQLServer', () => {
method: 'POST',
headers,
body,
agent: testAgent,
});

expect(res.status).toEqual(200);
Expand Down Expand Up @@ -9447,6 +9451,7 @@ describe('ParseGraphQLServer', () => {
method: 'POST',
headers,
body: body2,
agent: testAgent,
});
expect(res.status).toEqual(200);
const result2 = JSON.parse(await res.text());
Expand Down Expand Up @@ -9639,6 +9644,7 @@ describe('ParseGraphQLServer', () => {
method: 'POST',
headers,
body,
agent: testAgent,
});
expect(res.status).toEqual(200);
const result = await res.json();
Expand Down Expand Up @@ -9692,6 +9698,7 @@ describe('ParseGraphQLServer', () => {
method: 'POST',
headers,
body,
agent: testAgent,
});

const result = JSON.parse(await res.text());
Expand Down

0 comments on commit 1c23533

Please sign in to comment.