Skip to content

Commit

Permalink
fix test code identation
Browse files Browse the repository at this point in the history
  • Loading branch information
FinalDes committed Dec 5, 2017
1 parent 1fce229 commit 9d17f36
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions test/server.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ describe("Graphql test", () => {
});
it("Get Hi, content-type application/graphql", (done: jest.DoneCallback) => {
request(app)
.post("/graphql")
.set("Content-Type", "application/graphql; charset=UTF-8")
.send("{hi}")
.expect(200)
.end((err, res: request.Response) => {
expect(err).toBeNull();
expect(res.body).toEqual(result);
// res.body.should.to.deep.equal(result);
done();
.post("/graphql")
.set("Content-Type", "application/graphql; charset=UTF-8")
.send("{hi}")
.expect(200)
.end((err, res: request.Response) => {
expect(err).toBeNull();
expect(res.body).toEqual(result);
// res.body.should.to.deep.equal(result);
done();
});
});
it("Check headers", (done: jest.DoneCallback) => {
Expand Down

0 comments on commit 9d17f36

Please sign in to comment.