mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 15:24:32 +00:00
test: drop redundant product carousel limit case
This commit is contained in:
@@ -235,15 +235,4 @@ describe("createProductCarousel", () => {
|
|||||||
.columns;
|
.columns;
|
||||||
expect(columns[0].actions[0].type).toBe("postback");
|
expect(columns[0].actions[0].type).toBe("postback");
|
||||||
});
|
});
|
||||||
|
|
||||||
it("limits to 10 products", () => {
|
|
||||||
const products = Array.from({ length: 15 }, (_, i) => ({
|
|
||||||
title: `Product ${i}`,
|
|
||||||
description: `Desc ${i}`,
|
|
||||||
}));
|
|
||||||
const template = createProductCarousel(products);
|
|
||||||
|
|
||||||
const columns = (template.template as { columns: unknown[] }).columns;
|
|
||||||
expect(columns.length).toBe(10);
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user