The best way to control Claude Code, Codex and more from any computer or phone
test: remove redundant short-string truncation test (#33867)
Co-authored-by: t3-code[bot] <269035359+t3-code[bot]@users.noreply.github.com>
t3-code-bot[bot] committed
Nov 10, 2026 at 20:37 UTC
b718643e83b4ba3a2856c71c8e678a4294200aec
1 file changed
-4
packages/shared/src/String.test.ts
-4
@@ -3,10 +3,6 @@ import { describe, expect, it } from "vite-plus/test";
3
import { truncate } from "./String.ts";
4
5
describe("truncate", () => {
6
- it("leaves short text alone", () => {
7
- expect(truncate("hello", 50)).toBe("hello");
8
- });
9
-
6
it("cuts by Unicode code point so emoji stay whole", () => {
7
expect(truncate("👍👍👍", 5)).toBe("👍👍👍");
8
expect(truncate("👍👍👍👍", 3)).toBe("👍👍👍...");