From 7d919c065c6e4da69bb5faeb89ff2661f7d69e03 Mon Sep 17 00:00:00 2001 From: Jonas Helfer Date: Mon, 27 Jun 2016 16:15:03 -0400 Subject: [PATCH] run gzip and deflate tests --- src/test/testApolloServerHTTP.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/testApolloServerHTTP.ts b/src/test/testApolloServerHTTP.ts index 55d33f70..742b5982 100644 --- a/src/test/testApolloServerHTTP.ts +++ b/src/test/testApolloServerHTTP.ts @@ -26,7 +26,7 @@ import { graphqlHTTP } from '../integrations/expressApollo'; import { expect } from 'chai'; import { stringify } from 'querystring'; -import zlib from 'zlib'; +import * as zlib from 'zlib'; import * as multer from 'multer'; import * as bodyParser from 'body-parser'; const request = require('supertest-as-promised'); @@ -337,10 +337,10 @@ describe('test harness', () => { */ - /* it('allows gzipped POST bodies', async () => { const app = express(); + app.use(urlString(), bodyParser.json()); app.use(urlString(), graphqlHTTP(() => ({ schema: TestSchema }))); @@ -367,6 +367,7 @@ describe('test harness', () => { it('allows deflated POST bodies', async () => { const app = express(); + app.use(urlString(), bodyParser.json()); app.use(urlString(), graphqlHTTP(() => ({ schema: TestSchema }))); @@ -389,7 +390,6 @@ describe('test harness', () => { } }); }); - */ it('allows for pre-parsed POST bodies', () => { // Note: this is not the only way to handle file uploads with GraphQL,