mirror of
https://github.com/getpaseo/paseo.git
synced 2026-10-28 12:12:47 +00:00
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.
13 lines
394 B
TypeScript
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("—");
|
|
});
|
|
});
|