summaryrefslogtreecommitdiff
path: root/tests/test-prog-webdev-format.el
Commit message (Collapse)AuthorAgeFilesLines
* test(prog-webdev): cover cj/webdev-format-bufferCraig Jennings2026-05-121-0/+93
I added `tests/test-prog-webdev-format.el` — 7 ERT tests over `cj/--webdev-format-command` (plain path, spaces-quoted, `.tsx`) and `cj/webdev-format-buffer` (prettier present → the region command targets `buffer-file-name`; the `file.ts` fallback when the buffer has no file; point clamps to `point-max` when the format shrinks the buffer; prettier missing → `user-error`). `executable-find` and `shell-command-on-region` are stubbed. `cj/webdev-keybindings` was already covered by `test-prog-webdev--format-wiring.el`.