mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 08:42:43 +00:00
test: remove redundant action-card hero passthrough case
This commit is contained in:
@@ -75,14 +75,6 @@ describe("createActionCard", () => {
|
|||||||
const footer = card.footer as { contents: unknown[] };
|
const footer = card.footer as { contents: unknown[] };
|
||||||
expect(footer.contents.length).toBe(4);
|
expect(footer.contents.length).toBe(4);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("includes hero image when provided", () => {
|
|
||||||
const card = createActionCard("Title", "Body", [], {
|
|
||||||
imageUrl: "https://example.com/hero.jpg",
|
|
||||||
});
|
|
||||||
|
|
||||||
expect((card.hero as { url: string }).url).toBe("https://example.com/hero.jpg");
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
describe("createCarousel", () => {
|
describe("createCarousel", () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user