Skip to content

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

A gone thread reveals too: its tests

milind-sonidd1505be924b
diff --git a/src/components/ThreadChip.test.ts b/src/components/ThreadChip.test.ts
index a7ff1e0ae9..e8c2e1d844 100644
--- a/src/components/ThreadChip.test.ts
+++ b/src/components/ThreadChip.test.ts
@@ -90,6 +90,7 @@ describe("ThreadChip", () => {
findElement(tree, "data-thread-chip")!.props.onClick!();
expect(fixture.dispatch.mock.calls.map(([action]) => action)).toEqual([
{ type: "select", id: "scout" },
+ { type: "revealThread", threadId: "gone" },
{ type: "notice", notice: { kind: "thread-gone", botName: "Scout" } },
]);
});
diff --git a/src/state/store.test.ts b/src/state/store.test.ts
index 61c050c3db..8f23c5f61a 100644
--- a/src/state/store.test.ts
+++ b/src/state/store.test.ts
@@ -971,6 +971,7 @@ describe("notification routing", () => {
expect(openThread(dispatch, { botId: "bot-1", threadId: "deleted-thread" }, { bots: named, groups: [] }, false)).toBe(false);
expect(dispatch.mock.calls.map(([action]) => action)).toEqual([
{ type: "switchTask", botId: "bot-1", threadId: "later-chat" },
+ { type: "revealThread", threadId: "deleted-thread" },
{ type: "notice", notice: { kind: "thread-gone", botName: "Scout" } },
]);
});