welcome to the world

This commit is contained in:
2021-09-07 07:10:00 +02:00
parent a7ebfe2b02
commit acfd3f5902
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ describe("Get route", () => {
it("page should return hello Mr Jenkins", async () => { it("page should return hello Mr Jenkins", async () => {
const res = await request(app).get("/"); const res = await request(app).get("/");
expect(res.statusCode).toEqual(200); expect(res.statusCode).toEqual(200);
expect(res.body).toEqual("Hello Mr Jenkins"); expect(res.body).toEqual("Hello Mr Jenkins, welcome to the world");
}); });
}); });
+1 -1
View File
@@ -3,7 +3,7 @@ const express = require("express");
const app = express(); const app = express();
app.get("/", (req, res) => { app.get("/", (req, res) => {
res.status(200).json("Hello Mr Jenkins"); res.status(200).json("Hello Mr Jenkins, welcome to the world");
}); });
module.exports = app.listen(process.env.PORT || 4000, () => module.exports = app.listen(process.env.PORT || 4000, () =>