initial commit

This commit is contained in:
2021-09-06 11:08:59 +02:00
parent 1ebac1dd27
commit fa63d7bb60
4 changed files with 3685 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
const request = require("supertest");
const app = require("../index");
describe("Get route", () => {
it("page should return hello world", async () => {
const res = await request(app).get("/");
expect(res.statusCode).toEqual(200);
expect(res.body).toEqual("Hello world");
});
});
afterAll(async () => {
await app.close();
});