mirror of https://github.com/openclaw/openclaw.git
test: remove redundant notification title passthrough case
This commit is contained in:
parent
91337b4b6f
commit
bf2d78505e
|
|
@ -5,7 +5,6 @@ import {
|
|||
createImageCard,
|
||||
createActionCard,
|
||||
createCarousel,
|
||||
createNotificationBubble,
|
||||
createEventCard,
|
||||
createDeviceControlCard,
|
||||
} from "./flex-templates.js";
|
||||
|
|
@ -78,17 +77,6 @@ describe("createCarousel", () => {
|
|||
});
|
||||
});
|
||||
|
||||
describe("createNotificationBubble", () => {
|
||||
it("includes title when provided", () => {
|
||||
const bubble = createNotificationBubble("Details here", {
|
||||
title: "Alert Title",
|
||||
});
|
||||
const body = bubble.body as { contents: Array<{ contents?: Array<{ text?: string }> }> };
|
||||
const contentSection = body.contents[1] as { contents: Array<{ text?: string }> };
|
||||
expect(contentSection.contents[0].text).toBe("Alert Title");
|
||||
});
|
||||
});
|
||||
|
||||
describe("createDeviceControlCard", () => {
|
||||
it("limits controls to 6", () => {
|
||||
const card = createDeviceControlCard({
|
||||
|
|
|
|||
Loading…
Reference in New Issue