test(status-line): narrowed session accent helper to a definite string

This commit is contained in:
can1357
2026-08-07 13:43:20 +02:00
parent db274a8d41
commit c6e8e55f9d
@@ -144,10 +144,13 @@ describe("status line session accent", () => {
}
// Computed lazily: `theme` is assigned by initTheme() in beforeAll, after module evaluation.
const accentAnsi = () =>
getSessionAccentAnsi(
const accentAnsi = (): string => {
const ansi = getSessionAccentAnsi(
getSessionAccentHex("Named session", theme.getMajorThemeColorHexes(), theme.accentSurfaceLuminance),
);
if (!ansi) throw new Error("expected a session accent ANSI sequence for the test theme");
return ansi;
};
it("paints the gap with the session accent when enabled", () => {
const ansi = accentAnsi();