mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 14:18:26 +00:00
test: remove duplicate line flex wrapper coverage
This commit is contained in:
@@ -1,28 +1,5 @@
|
|||||||
import { describe, expect, it } from "vitest";
|
import { describe, expect, it } from "vitest";
|
||||||
import {
|
import { createQuickReplyItems, createTextMessageWithQuickReplies } from "./send.js";
|
||||||
createFlexMessage,
|
|
||||||
createQuickReplyItems,
|
|
||||||
createTextMessageWithQuickReplies,
|
|
||||||
} from "./send.js";
|
|
||||||
|
|
||||||
describe("createFlexMessage", () => {
|
|
||||||
it("creates a flex message with alt text and contents", () => {
|
|
||||||
const contents = {
|
|
||||||
type: "bubble" as const,
|
|
||||||
body: {
|
|
||||||
type: "box" as const,
|
|
||||||
layout: "vertical" as const,
|
|
||||||
contents: [],
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
const message = createFlexMessage("Alt text for flex", contents);
|
|
||||||
|
|
||||||
expect(message.type).toBe("flex");
|
|
||||||
expect(message.altText).toBe("Alt text for flex");
|
|
||||||
expect(message.contents).toBe(contents);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
describe("createQuickReplyItems", () => {
|
describe("createQuickReplyItems", () => {
|
||||||
it("creates quick reply items from labels", () => {
|
it("creates quick reply items from labels", () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user