feat(app): add header tooltips + shortcuts (#16)
This commit is contained in:
@@ -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");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user