Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Olgierd Pieczul committed Sep 17, 2018
1 parent d78fab3 commit 62bc850
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,15 @@ 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)
.set('Accept', 'application/json')
.set('Content-Type', 'application/graphql')
.send('query { me { id } }')
.expect(200, { data: { me: { id: id } } }, done);
}
});
});
}
});

0 comments on commit 62bc850

Please sign in to comment.