test: verify missing database status refs #15
startup-product-gitea-ci/pipeline/head This commit looks good
startup-product-gitea-ci/pipeline/head This commit looks good
This commit is contained in:
@@ -15,3 +15,10 @@ test("reports unhealthy when database is disconnected", () => {
|
||||
database: "disconnected"
|
||||
});
|
||||
});
|
||||
|
||||
test("reports unhealthy when database status is missing", () => {
|
||||
assert.deepEqual(getHealthStatus(), {
|
||||
status: "unhealthy",
|
||||
database: "disconnected"
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user