Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
test(team-messages): Marco's assistant reads a fixed clock, so his Thursday slot is still ahead (#3850)
Milind Sonid915c2d8a3f1
diff --git a/server/host/team-messages.test.ts b/server/host/team-messages.test.tsindex 02bf6a8e1b..ad748c9893 100644--- a/server/host/team-messages.test.ts+++ b/server/host/team-messages.test.ts@@ -185,11 +185,13 @@ describe("@Marco", () => {});describe("Marco's assistant", () => {+ // Two days before the busy slot, on the assistant's own clock: on the real one the slot passed and was no longer shown.+ const NOW = Date.UTC(2026, 9, 27, 9);const BUSY = { start: Date.UTC(2026, 9, 29, 14), end: Date.UTC(2026, 9, 29, 15) };const assistant = (reply: string) => {const generate = vi.fn(async (_botId: string, _prompt: string) => reply);const busy = vi.fn(async () => [BUSY]);- return { generate, busy, f: fixture({ representative: { generate, busy, timeZone: () => "UTC" } }) };+ return { generate, busy, f: fixture({ representative: { generate, busy, timeZone: () => "UTC", now: () => NOW } }) };};it("answers a free/busy question itself, says so where it was asked and in his inbox, and notifies him once", async () => {