welcome to the world
This commit is contained in:
@@ -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");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -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, () =>
|
||||||
|
|||||||
Reference in New Issue
Block a user