This commit is contained in:
4
test.js
4
test.js
@@ -13,9 +13,9 @@ const app = require("./index");
|
||||
|
||||
describe("API Testing", () => {
|
||||
|
||||
test("GET / should return home message", async () => {
|
||||
test("GET / should return status ok", async () => {
|
||||
const res = await request(app).get("/");
|
||||
expect(res.text).toBe("🚀 Home Route Working");
|
||||
expect(res.body.status).toBe("ok");
|
||||
});
|
||||
|
||||
test("GET /health should return status OK", async () => {
|
||||
|
||||
Reference in New Issue
Block a user