mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 14:24:30 +00:00
test: remove redundant line markdown conversion smoke checks
This commit is contained in:
@@ -230,21 +230,6 @@ Some ~~deleted~~ content.`;
|
|||||||
});
|
});
|
||||||
|
|
||||||
describe("convertTableToFlexBubble", () => {
|
describe("convertTableToFlexBubble", () => {
|
||||||
it("creates a receipt-style card for 2-column tables", () => {
|
|
||||||
const table = {
|
|
||||||
headers: ["Item", "Price"],
|
|
||||||
rows: [
|
|
||||||
["Apple", "$1"],
|
|
||||||
["Banana", "$2"],
|
|
||||||
],
|
|
||||||
};
|
|
||||||
|
|
||||||
const bubble = convertTableToFlexBubble(table);
|
|
||||||
|
|
||||||
expect(bubble.type).toBe("bubble");
|
|
||||||
expect(bubble.body).toBeDefined();
|
|
||||||
});
|
|
||||||
|
|
||||||
it("creates a multi-column layout for 3+ column tables", () => {
|
it("creates a multi-column layout for 3+ column tables", () => {
|
||||||
const table = {
|
const table = {
|
||||||
headers: ["A", "B", "C"],
|
headers: ["A", "B", "C"],
|
||||||
@@ -364,15 +349,6 @@ That's it.`;
|
|||||||
expect(result.text).not.toContain("```");
|
expect(result.text).not.toContain("```");
|
||||||
});
|
});
|
||||||
|
|
||||||
it("processes text with markdown formatting", () => {
|
|
||||||
const text = "This is **bold** and *italic* text.";
|
|
||||||
|
|
||||||
const result = processLineMessage(text);
|
|
||||||
|
|
||||||
expect(result.text).toBe("This is bold and italic text.");
|
|
||||||
expect(result.flexMessages).toHaveLength(0);
|
|
||||||
});
|
|
||||||
|
|
||||||
it("handles mixed content", () => {
|
it("handles mixed content", () => {
|
||||||
const text = `# Summary
|
const text = `# Summary
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user