From 62bc850d7e20b555b4f0fcc39c3f6498b9d1f8da Mon Sep 17 00:00:00 2001 From: Olgierd Pieczul Date: Mon, 17 Sep 2018 15:01:41 +0100 Subject: [PATCH] fix tests --- test.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/test.js b/test.js index f94d08c..13bd57f 100644 --- a/test.js +++ b/test.js @@ -12,9 +12,8 @@ describe('testing proxy', () => { after(function () { server.close(); }); - - it('graphQL me() ', (done) => { - for (let i = 0; i < 2; i++) { // run twice to test caching + for (let i = 0; i < 2; i++) { // run twice to test caching + it(`graphQL me(), run ${i}`, (done) => { request(server) .post('/graphql') .auth(id, secret) @@ -22,6 +21,6 @@ describe('testing proxy', () => { .set('Content-Type', 'application/graphql') .send('query { me { id } }') .expect(200, { data: { me: { id: id } } }, done); - } - }); + }); + } });