mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-11 05:54:32 +00:00
test: remove redundant flex message wrapper test
This commit is contained in:
@@ -9,7 +9,6 @@ import {
|
|||||||
createEventCard,
|
createEventCard,
|
||||||
createMediaPlayerCard,
|
createMediaPlayerCard,
|
||||||
createDeviceControlCard,
|
createDeviceControlCard,
|
||||||
toFlexMessage,
|
|
||||||
} from "./flex-templates.js";
|
} from "./flex-templates.js";
|
||||||
|
|
||||||
describe("createInfoCard", () => {
|
describe("createInfoCard", () => {
|
||||||
@@ -155,14 +154,3 @@ describe("createEventCard", () => {
|
|||||||
expect(body.contents).toHaveLength(3);
|
expect(body.contents).toHaveLength(3);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe("toFlexMessage", () => {
|
|
||||||
it("wraps a container in a FlexMessage", () => {
|
|
||||||
const bubble = createInfoCard("Title", "Body");
|
|
||||||
const message = toFlexMessage("Alt text", bubble);
|
|
||||||
|
|
||||||
expect(message.type).toBe("flex");
|
|
||||||
expect(message.altText).toBe("Alt text");
|
|
||||||
expect(message.contents).toBe(bubble);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|||||||
Reference in New Issue
Block a user