Skip to content

Commit 38d4838

Browse files
committed
add routes
1 parent 70af055 commit 38d4838

File tree

5 files changed

+4661
-0
lines changed

5 files changed

+4661
-0
lines changed

__tests__/main.test.js

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
const request = require("supertest");
2+
const app = require("../src/app");
3+
4+
describe("GET /", () => {
5+
it("responds with Hello World!", async () => {
6+
const response = await request(app).get("/");
7+
expect(response.statusCode).toBe(200);
8+
expect(response.text).toBe("Hello World!");
9+
});
10+
});

0 commit comments

Comments
 (0)