mirror of
https://github.com/vale981/apollo-server
synced 2025-03-06 10:11:40 -05:00
run gzip and deflate tests
This commit is contained in:
parent
b3d4c05295
commit
7d919c065c
1 changed files with 3 additions and 3 deletions
|
@ -26,7 +26,7 @@ import { graphqlHTTP } from '../integrations/expressApollo';
|
||||||
|
|
||||||
import { expect } from 'chai';
|
import { expect } from 'chai';
|
||||||
import { stringify } from 'querystring';
|
import { stringify } from 'querystring';
|
||||||
import zlib from 'zlib';
|
import * as zlib from 'zlib';
|
||||||
import * as multer from 'multer';
|
import * as multer from 'multer';
|
||||||
import * as bodyParser from 'body-parser';
|
import * as bodyParser from 'body-parser';
|
||||||
const request = require('supertest-as-promised');
|
const request = require('supertest-as-promised');
|
||||||
|
@ -337,10 +337,10 @@ describe('test harness', () => {
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
|
||||||
it('allows gzipped POST bodies', async () => {
|
it('allows gzipped POST bodies', async () => {
|
||||||
const app = express();
|
const app = express();
|
||||||
|
|
||||||
|
app.use(urlString(), bodyParser.json());
|
||||||
app.use(urlString(), graphqlHTTP(() => ({
|
app.use(urlString(), graphqlHTTP(() => ({
|
||||||
schema: TestSchema
|
schema: TestSchema
|
||||||
})));
|
})));
|
||||||
|
@ -367,6 +367,7 @@ describe('test harness', () => {
|
||||||
it('allows deflated POST bodies', async () => {
|
it('allows deflated POST bodies', async () => {
|
||||||
const app = express();
|
const app = express();
|
||||||
|
|
||||||
|
app.use(urlString(), bodyParser.json());
|
||||||
app.use(urlString(), graphqlHTTP(() => ({
|
app.use(urlString(), graphqlHTTP(() => ({
|
||||||
schema: TestSchema
|
schema: TestSchema
|
||||||
})));
|
})));
|
||||||
|
@ -389,7 +390,6 @@ describe('test harness', () => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
*/
|
|
||||||
|
|
||||||
it('allows for pre-parsed POST bodies', () => {
|
it('allows for pre-parsed POST bodies', () => {
|
||||||
// Note: this is not the only way to handle file uploads with GraphQL,
|
// Note: this is not the only way to handle file uploads with GraphQL,
|
||||||
|
|
Loading…
Add table
Reference in a new issue