mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 22:11:36 +00:00
test: remove duplicate telegram de-linkify case
This commit is contained in:
@@ -293,12 +293,6 @@ describe("edge cases", () => {
|
|||||||
expect(result).toContain("</a> <code>script.py</code>");
|
expect(result).toContain("</a> <code>script.py</code>");
|
||||||
});
|
});
|
||||||
|
|
||||||
it("handles auto-linked anchor with backreference match", () => {
|
|
||||||
// The regex uses \1 backreference - href must equal label
|
|
||||||
const input = '<a href="http://README.md">README.md</a>';
|
|
||||||
expect(wrapFileReferencesInHtml(input)).toBe("<code>README.md</code>");
|
|
||||||
});
|
|
||||||
|
|
||||||
it("preserves anchor when href and label differ (no backreference match)", () => {
|
it("preserves anchor when href and label differ (no backreference match)", () => {
|
||||||
// Different href and label - should NOT de-linkify
|
// Different href and label - should NOT de-linkify
|
||||||
const input = '<a href="http://other.md">README.md</a>';
|
const input = '<a href="http://other.md">README.md</a>';
|
||||||
|
|||||||
Reference in New Issue
Block a user