test: remove redundant notification title passthrough case
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user