Merge pull request #1192 from bluewave-labs/fix/be/status-service-status-string

Add better status string generation
This commit is contained in:
Alexander Holliday authored and GitHub committed 2024-11-24 18:36:01 -08:00
commit bf79dde960
2 files changed
+18 -1

No files matched your search

@@ -27,6 +27,18 @@ describe("StatusService", () => {
});
});
describe("getStatusString", () => {
it("should return 'up' if status is true", () => {
expect(statusService.getStatusString(true)).to.equal("up");
});
it("should return 'down' if status is false", () => {
expect(statusService.getStatusString(false)).to.equal("down");
});
it("should return 'unknown' if status is undefined or null", () => {
expect(statusService.getStatusString(undefined)).to.equal("unknown");
});
});
describe("updateStatus", async () => {
beforeEach(() => {
// statusService.insertCheck = sinon.stub().resolves;