mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-19 05:50:47 +00:00
test: tighten shared tailscale and sample coverage
This commit is contained in:
@@ -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");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user