mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-12 11:37:49 +00:00
test: tighten shared tailscale and sample coverage
This commit is contained in:
parent
a6375a2094
commit
fa04e62201
2 changed files with 32 additions and 0 deletions
|
|
@ -42,4 +42,14 @@ describe("summarizeStringEntries", () => {
|
|||
}),
|
||||
).toBe("a, b, c, d, e, f (+1)");
|
||||
});
|
||||
|
||||
it("does not add a suffix when the limit exactly matches the entry count", () => {
|
||||
expect(
|
||||
summarizeStringEntries({
|
||||
entries: ["a", "b", "c"],
|
||||
limit: 3,
|
||||
emptyText: "ignored",
|
||||
}),
|
||||
).toBe("a, b, c");
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue