mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 06:41:22 +00:00
test: remove redundant notification title passthrough case
This commit is contained in:
@@ -5,7 +5,6 @@ import {
|
|||||||
createImageCard,
|
createImageCard,
|
||||||
createActionCard,
|
createActionCard,
|
||||||
createCarousel,
|
createCarousel,
|
||||||
createNotificationBubble,
|
|
||||||
createEventCard,
|
createEventCard,
|
||||||
createDeviceControlCard,
|
createDeviceControlCard,
|
||||||
} from "./flex-templates.js";
|
} 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", () => {
|
describe("createDeviceControlCard", () => {
|
||||||
it("limits controls to 6", () => {
|
it("limits controls to 6", () => {
|
||||||
const card = createDeviceControlCard({
|
const card = createDeviceControlCard({
|
||||||
|
|||||||
Reference in New Issue
Block a user