Skip to content

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

Keep the suggestion text in a typed const in the replies test

AdityaUmale1dfb3b9392c4
diff --git a/server/replies.test.ts b/server/replies.test.ts
index 64455d9fa4..0ffd6a918e 100644
--- a/server/replies.test.ts
+++ b/server/replies.test.ts
@@ -26,8 +26,9 @@ describe("a card the server built", () => {
describe("the app's own add-a-key suggestion", () => {
it("replays as a card the bot did not write, never as the bot's own words, and so does a reply or reaction to it", () => {
- const card = message({ text: "Want me to sort your email for free? Add a key.", setupSuggestion: { kind: "helperKey" } });
- const records = cardRecords(card.text, SETUP_RECORDS_SOURCE);
+ const text = "Want me to sort your email for free? Add a key.";
+ const card = message({ text, setupSuggestion: { kind: "helperKey" } });
+ const records = cardRecords(text, SETUP_RECORDS_SOURCE);
expect(records).not.toContain("mail, calendar");
expect(transcriptText(card, new Map())).toBe(records);
const reply = message({ id: "m2", role: "user", text: "what is this?", replyToId: "m1" });