mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 08:01:23 +00:00
test: remove redundant elide exact-limit case
This commit is contained in:
@@ -171,10 +171,6 @@ describe("web auto-reply util", () => {
|
|||||||
expect(elide("hi", 10)).toBe("hi");
|
expect(elide("hi", 10)).toBe("hi");
|
||||||
});
|
});
|
||||||
|
|
||||||
it("returns input when exactly at limit", () => {
|
|
||||||
expect(elide("12345", 5)).toBe("12345");
|
|
||||||
});
|
|
||||||
|
|
||||||
it("truncates and annotates when over limit", () => {
|
it("truncates and annotates when over limit", () => {
|
||||||
expect(elide("abcdef", 3)).toBe("abc… (truncated 3 chars)");
|
expect(elide("abcdef", 3)).toBe("abc… (truncated 3 chars)");
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user