Open History to see the last commit
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});