mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 20:24:33 +00:00
test: remove redundant media-player image passthrough case
This commit is contained in:
@@ -7,7 +7,6 @@ import {
|
|||||||
createCarousel,
|
createCarousel,
|
||||||
createNotificationBubble,
|
createNotificationBubble,
|
||||||
createEventCard,
|
createEventCard,
|
||||||
createMediaPlayerCard,
|
|
||||||
createDeviceControlCard,
|
createDeviceControlCard,
|
||||||
} from "./flex-templates.js";
|
} from "./flex-templates.js";
|
||||||
|
|
||||||
@@ -106,17 +105,6 @@ describe("createNotificationBubble", () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe("createMediaPlayerCard", () => {
|
|
||||||
it("includes album art when provided", () => {
|
|
||||||
const card = createMediaPlayerCard({
|
|
||||||
title: "Track Name",
|
|
||||||
imageUrl: "https://example.com/album.jpg",
|
|
||||||
});
|
|
||||||
|
|
||||||
expect((card.hero as { url: string }).url).toBe("https://example.com/album.jpg");
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
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