Skip to content

Commit

Permalink
BE #4 add jest testing for get articles
Browse files Browse the repository at this point in the history
  • Loading branch information
tito433 committed May 17, 2020
1 parent e5f22ce commit 3cb500e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/routes/article.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
const request = require("supertest");
const app = require("../../app");

describe("Test route /article", () => {
test("It should response 200 on GET method", done => {
request(app)
.get("/article")
.then(response => {
expect(response.statusCode).toBe(200);
done();
});
});
});

0 comments on commit 3cb500e

Please # to comment.