Add Jenkins CI pipeline and automated Node.js tests #8
@@ -3,7 +3,7 @@ const assert = require("node:assert/strict");
|
||||
const { getHealthStatus } = require("../src/health");
|
||||
|
||||
test("reports healthy when database is connected", () => {
|
||||
assert.deepEqual(getHealthStatus(true), {
|
||||
assert.deepEqual(getHealthStatus(false), {
|
||||
status: "healthy",
|
||||
database: "connected"
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user