mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 06:27:39 +00:00
test: remove redundant image-card aspect ratio passthrough case
This commit is contained in:
@@ -54,14 +54,6 @@ describe("createImageCard", () => {
|
|||||||
expect(body.contents.length).toBe(2);
|
expect(body.contents.length).toBe(2);
|
||||||
expect(body.contents[1].text).toBe("Body text");
|
expect(body.contents[1].text).toBe("Body text");
|
||||||
});
|
});
|
||||||
|
|
||||||
it("applies custom aspect ratio", () => {
|
|
||||||
const card = createImageCard("https://example.com/img.jpg", "Title", undefined, {
|
|
||||||
aspectRatio: "16:9",
|
|
||||||
});
|
|
||||||
|
|
||||||
expect((card.hero as { aspectRatio: string }).aspectRatio).toBe("16:9");
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
describe("createActionCard", () => {
|
describe("createActionCard", () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user