mirror of https://github.com/openclaw/openclaw.git
test: remove duplicate telegram .co link formatting case
This commit is contained in:
parent
5f2bcfc4d2
commit
b97b8908b9
|
|
@ -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>");
|
||||
|
|
|
|||
Loading…
Reference in New Issue