feat(app): add header tooltips + shortcuts (#16)

This commit is contained in:
Mohamed Boudra
2026-02-05 22:40:29 +07:00
committed by GitHub
parent 6784a3feec
commit a2eab7b00b
9 changed files with 747 additions and 14 deletions
@@ -0,0 +1,16 @@
import { describe, expect, it } from "vitest";
import { formatShortcut } from "./format-shortcut";
describe("formatShortcut", () => {
it("uses symbols on macOS", () => {
expect(formatShortcut(["mod", "B"], "mac")).toBe("⌘B");
expect(formatShortcut(["mod", "E"], "mac")).toBe("⌘E");
});
it("uses Ctrl+ on non-mac platforms", () => {
expect(formatShortcut(["mod", "B"], "non-mac")).toBe("Ctrl+B");
expect(formatShortcut(["mod", "E"], "non-mac")).toBe("Ctrl+E");
});
});