From acfd3f5902ffa6bf99e6051722cba54f1be27aa3 Mon Sep 17 00:00:00 2001 From: steven Date: Tue, 7 Sep 2021 07:10:00 +0200 Subject: [PATCH] welcome to the world --- __test__/index.test.js | 2 +- index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/__test__/index.test.js b/__test__/index.test.js index 6d28470..05b9495 100644 --- a/__test__/index.test.js +++ b/__test__/index.test.js @@ -5,7 +5,7 @@ describe("Get route", () => { it("page should return hello Mr Jenkins", async () => { const res = await request(app).get("/"); expect(res.statusCode).toEqual(200); - expect(res.body).toEqual("Hello Mr Jenkins"); + expect(res.body).toEqual("Hello Mr Jenkins, welcome to the world"); }); }); diff --git a/index.js b/index.js index cc48a0c..17a823b 100644 --- a/index.js +++ b/index.js @@ -3,7 +3,7 @@ const express = require("express"); const app = express(); 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, () =>