mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-03 03:03:24 -04:00
test: remove line text quick-reply passthrough tests
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { createQuickReplyItems, createTextMessageWithQuickReplies } from "./send.js";
|
||||
import { createQuickReplyItems } from "./send.js";
|
||||
|
||||
describe("createQuickReplyItems", () => {
|
||||
it("creates quick reply items from labels", () => {
|
||||
@@ -30,19 +30,3 @@ describe("createQuickReplyItems", () => {
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
describe("createTextMessageWithQuickReplies", () => {
|
||||
it("creates a text message with quick replies attached", () => {
|
||||
const message = createTextMessageWithQuickReplies("Choose an option:", ["Yes", "No"]);
|
||||
|
||||
expect(message.type).toBe("text");
|
||||
expect(message.text).toBe("Choose an option:");
|
||||
expect(message.quickReply.items).toHaveLength(2);
|
||||
});
|
||||
|
||||
it("handles empty quick replies array", () => {
|
||||
const message = createTextMessageWithQuickReplies("No options", []);
|
||||
|
||||
expect(message.quickReply.items).toHaveLength(0);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user