Skip to content

Commit 6e40928

Browse files
committed
update graphql test identation
1 parent d7232db commit 6e40928

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

test/graphql.test.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ const result: {data: {hi: string; }; } = {data: {hi: "Hello World"}};
88
describe("Graphql test", () => {
99
it("Get Hi, content-type application/json", (done: jest.DoneCallback) => {
1010
request(app)
11-
.post("/graphql")
12-
.set("Content-Type", "application/json; charset=UTF-8")
13-
.send({query: "{hi}"})
14-
.expect(200)
15-
.end((err, res: request.Response) => {
16-
expect(err).toBeNull();
17-
expect(res.body).toEqual(result);
18-
// res.body.should.to.deep.equal(result);
19-
done();
11+
.post("/graphql")
12+
.set("Content-Type", "application/json; charset=UTF-8")
13+
.send({query: "{hi}"})
14+
.expect(200)
15+
.end((err, res: request.Response) => {
16+
expect(err).toBeNull();
17+
expect(res.body).toEqual(result);
18+
// res.body.should.to.deep.equal(result);
19+
done();
2020
});
2121
});
2222
it("Get Hi, content-type application/graphql", (done: jest.DoneCallback) => {

0 commit comments

Comments
 (0)