Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

Chief-absent notice: also quiet in a department's room with another department's Chief

milind-sonif1bbd0717ad8
diff --git a/server/host/chief-rooms.test.ts b/server/host/chief-rooms.test.ts
index d93670a788..8516f12128 100644
--- a/server/host/chief-rooms.test.ts
+++ b/server/host/chief-rooms.test.ts
@@ -91,5 +91,7 @@ describe("a room without its department's Chief", () => {
expect(chiefAbsentFrom(general(["lead", "mira"]), [global, teamChief, bot("mira")])).toBeUndefined();
expect(chiefAbsentFrom(general(["mira"]), [global, teamChief, bot("mira")])).toEqual({ botId: "global", name: "GLOBAL" });
expect(chiefAbsentFrom(general(["lead"]), [global, { ...teamChief, hidden: true } as BotRecord])).toEqual({ botId: "global", name: "GLOBAL" });
+ // A department's room with another department's Chief among its members is quiet too.
+ expect(chiefAbsentFrom(room("r", ["mira", "lead"], { kind: "mentions" }), [chief, teamChief])).toBeUndefined();
});
});