Browse Source

welcome to the world

master
Steven Kuterna 3 years ago
parent
commit
acfd3f5902
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      __test__/index.test.js
  2. +1
    -1
      index.js

+ 1
- 1
__test__/index.test.js View File

@ -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");
});
});


+ 1
- 1
index.js View File

@ -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, () =>


Loading…
Cancel
Save