import { describe, expect, it } from "vitest"; import { keyLabel } from "#lib/components/ui/keyLabels.ts"; describe("keyLabel", () => { it("uses symbols on a mac and words elsewhere", () => { expect(keyLabel("shift", true)).toBe("⇧"); expect(keyLabel("enter", true)).toBe("⏎"); expect(keyLabel("mod", false)).toBe("Ctrl"); expect(keyLabel("enter", false)).toBe("Enter"); }); });