mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 23:31:35 +00:00
test: trim additional low-signal flex template checks
This commit is contained in:
@@ -165,7 +165,7 @@ describe("createNotificationBubble", () => {
|
||||
title: "Alert Title",
|
||||
});
|
||||
|
||||
expect(bubble.body).toBeDefined();
|
||||
expect(bubble.type).toBe("bubble");
|
||||
});
|
||||
});
|
||||
|
||||
@@ -183,16 +183,6 @@ describe("createReceiptCard", () => {
|
||||
expect(card.body).toBeDefined();
|
||||
});
|
||||
|
||||
it("includes total when provided", () => {
|
||||
const card = createReceiptCard({
|
||||
title: "Receipt",
|
||||
items: [{ name: "Item", value: "$10" }],
|
||||
total: { label: "Total", value: "$10" },
|
||||
});
|
||||
|
||||
expect(card.body).toBeDefined();
|
||||
});
|
||||
|
||||
it("includes footer when provided", () => {
|
||||
const card = createReceiptCard({
|
||||
title: "Receipt",
|
||||
@@ -380,19 +370,6 @@ describe("createAgendaCard", () => {
|
||||
expect(card.body).toBeDefined();
|
||||
});
|
||||
|
||||
it("limits events to 8", () => {
|
||||
const manyEvents = Array.from({ length: 15 }, (_, i) => ({
|
||||
title: `Event ${i + 1}`,
|
||||
}));
|
||||
|
||||
const card = createAgendaCard({
|
||||
title: "Many Events",
|
||||
events: manyEvents,
|
||||
});
|
||||
|
||||
expect(card.body).toBeDefined();
|
||||
});
|
||||
|
||||
it("includes footer when provided", () => {
|
||||
const card = createAgendaCard({
|
||||
title: "Today",
|
||||
@@ -402,22 +379,6 @@ describe("createAgendaCard", () => {
|
||||
|
||||
expect(card.footer).toBeDefined();
|
||||
});
|
||||
|
||||
it("shows event metadata (time, location, calendar)", () => {
|
||||
const card = createAgendaCard({
|
||||
title: "Schedule",
|
||||
events: [
|
||||
{
|
||||
title: "Meeting",
|
||||
time: "10:00 AM",
|
||||
location: "Room A",
|
||||
calendar: "Work",
|
||||
},
|
||||
],
|
||||
});
|
||||
|
||||
expect(card.body).toBeDefined();
|
||||
});
|
||||
});
|
||||
|
||||
describe("toFlexMessage", () => {
|
||||
|
||||
Reference in New Issue
Block a user