test: remove redundant notification title passthrough case

This commit is contained in:
Peter Steinberger
2026-02-16 07:43:03 +00:00
parent 91337b4b6f
commit bf2d78505e

View File

@@ -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({