mirror of
https://github.com/openclaw/openclaw.git
synced 2026-02-19 18:39:20 -05:00
test: remove duplicate telegram .co link formatting case
This commit is contained in:
@@ -101,12 +101,6 @@ describe("markdownToTelegramHtml", () => {
|
||||
expect(res).toContain("(<code>backup.sh</code>).");
|
||||
});
|
||||
|
||||
it("keeps .co domains as links", () => {
|
||||
const res = markdownToTelegramHtml("Visit t.co and openclaw.co");
|
||||
expect(res).toContain('<a href="http://t.co">t.co</a>');
|
||||
expect(res).toContain('<a href="http://openclaw.co">openclaw.co</a>');
|
||||
});
|
||||
|
||||
it("renders spoiler tags", () => {
|
||||
const res = markdownToTelegramHtml("the answer is ||42||");
|
||||
expect(res).toBe("the answer is <tg-spoiler>42</tg-spoiler>");
|
||||
|
||||
Reference in New Issue
Block a user