mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 09:47:40 +00:00
test: trim redundant line quick-reply account checks
This commit is contained in:
@@ -181,10 +181,6 @@ describe("LINE accounts", () => {
|
|||||||
expect(normalizeAccountId("default")).toBe(DEFAULT_ACCOUNT_ID);
|
expect(normalizeAccountId("default")).toBe(DEFAULT_ACCOUNT_ID);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("preserves non-default account ids", () => {
|
|
||||||
expect(normalizeAccountId("business")).toBe("business");
|
|
||||||
});
|
|
||||||
|
|
||||||
it("trims and lowercases account ids", () => {
|
it("trims and lowercases account ids", () => {
|
||||||
expect(normalizeAccountId(" Business ")).toBe("business");
|
expect(normalizeAccountId(" Business ")).toBe("business");
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ describe("createQuickReplyItems", () => {
|
|||||||
const quickReply = createQuickReplyItems(["Option 1", "Option 2", "Option 3"]);
|
const quickReply = createQuickReplyItems(["Option 1", "Option 2", "Option 3"]);
|
||||||
|
|
||||||
expect(quickReply.items).toHaveLength(3);
|
expect(quickReply.items).toHaveLength(3);
|
||||||
expect(quickReply.items[0].type).toBe("action");
|
|
||||||
expect((quickReply.items[0].action as { label: string }).label).toBe("Option 1");
|
expect((quickReply.items[0].action as { label: string }).label).toBe("Option 1");
|
||||||
expect((quickReply.items[0].action as { text: string }).text).toBe("Option 1");
|
expect((quickReply.items[0].action as { text: string }).text).toBe("Option 1");
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user