test: tighten shared tailscale and sample coverage

This commit is contained in:
Peter Steinberger
2026-03-13 21:40:50 +00:00
parent a6375a2094
commit fa04e62201
2 changed files with 32 additions and 0 deletions

View File

@@ -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");
});
});