Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

ThreadGitControls.logic.test.ts

9 lines313 Bytes

1import { expect, it } from "vite-plus/test";
2​
3import { compactMenuBranchLabel } from "./ThreadGitControls.logic";
4​
5it("keeps emoji whole at both cuts of a long branch name", () => {
6 expect(compactMenuBranchLabel("feature/abc😀-long-branch-name-😀-for-menus")).toBe(
7 "feature/abc…-for-menus",
8 );
9});