Pick any line to see why it is the way it is: the commit, the pull request and issue it came from, and what the agent was thinking.
| Usage, Billing settings and prepaid AI credit; fixes from the UX audit | 1 | import assert from "node:assert/strict"; |
| 2 | import { test } from "node:test"; | |
| 3 | ||
| 4 | import { paletteKeyLabel } from "./shortcut.ts"; | |
| 5 | ||
| 6 | test("a Mac shows the Command key, everything else Ctrl", () => { | |
| 7 | assert.equal(paletteKeyLabel("macOS"), "⌘K"); | |
| 8 | assert.equal(paletteKeyLabel("MacIntel"), "⌘K"); | |
| 9 | assert.equal(paletteKeyLabel("iPad"), "⌘K"); | |
| 10 | assert.equal(paletteKeyLabel("Windows"), "Ctrl K"); | |
| 11 | assert.equal(paletteKeyLabel("Win32"), "Ctrl K"); | |
| 12 | assert.equal(paletteKeyLabel("Linux x86_64"), "Ctrl K"); | |
| 13 | assert.equal(paletteKeyLabel(""), "Ctrl K"); | |
| 14 | assert.equal(paletteKeyLabel(null), "Ctrl K"); | |
| 15 | }); |