From 21b9a7cdce694687c4b9509026bac718d84877ea Mon Sep 17 00:00:00 2001 From: Nabil Jint Date: Thu, 18 Jun 2026 06:06:40 +0100 Subject: [PATCH 1/2] break test on purpose --- command_used.md | 1 + tests/app.test.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/command_used.md b/command_used.md index bb4772a..35d0b30 100644 --- a/command_used.md +++ b/command_used.md @@ -2,4 +2,5 @@ ls -a Dockerfile .dockerignore docker build -t ci-cd-api . docker run -p 3000:3000 ci-cd-api mkdir -p .github/workflows +git checkout -b feature/break-things diff --git a/tests/app.test.js b/tests/app.test.js index 5826f6e..34d3a45 100644 --- a/tests/app.test.js +++ b/tests/app.test.js @@ -16,7 +16,7 @@ describe("GET /api/status", () => { it("should return 200 and service info", async () => { const res = await request(app).get("/api/status"); expect(res.status).toBe(200); - expect(res.body.service).toBe("ci-cd-api"); + expect(res.body.service).toBe("wrong-name"); expect(res.body.version).toBe("1.0.0"); expect(res.body.uptime).toBeDefined(); }); From 29f9b743b6b7b80d546aee298b67a8d04bdf922c Mon Sep 17 00:00:00 2001 From: Nabil Jint Date: Thu, 18 Jun 2026 06:11:08 +0100 Subject: [PATCH 2/2] fix broken test --- tests/app.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/app.test.js b/tests/app.test.js index 34d3a45..5826f6e 100644 --- a/tests/app.test.js +++ b/tests/app.test.js @@ -16,7 +16,7 @@ describe("GET /api/status", () => { it("should return 200 and service info", async () => { const res = await request(app).get("/api/status"); expect(res.status).toBe(200); - expect(res.body.service).toBe("wrong-name"); + expect(res.body.service).toBe("ci-cd-api"); expect(res.body.version).toBe("1.0.0"); expect(res.body.uptime).toBeDefined(); });