Files
paseo/packages/app/src/git/pull-request-panel/tab-label.test.ts
T
Mohamed Boudra c3321ea8ff Show PR numbers without the # and make header buttons icon-only
PR badges in the sidebar rows, hover card, and right-sidebar PR tab now
show the number alone. The Scripts and Open-in-editor header buttons drop
their labels and gain a min height so they keep the same size icon-only.
2026-06-18 22:50:40 +07:00

13 lines
394 B
TypeScript

import { describe, expect, it } from "vitest";
import { formatPrTabLabel } from "./tab-label";
describe("formatPrTabLabel", () => {
it("returns the number when a pull request number is present", () => {
expect(formatPrTabLabel(42)).toBe("42");
});
it("returns the — fallback when the pull request number is null", () => {
expect(formatPrTabLabel(null)).toBe("—");
});
});