aboutsummaryrefslogtreecommitdiff
path: root/tests/test-prog-webdev-format.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-12 18:00:50 -0500
committerCraig Jennings <c@cjennings.net>2026-05-12 18:00:50 -0500
commit7ff4e99bb9c7d6b821b0ccf7b81baaa194b570ac (patch)
tree2a180b1190d8f1e0e30d85ca164fabc73662ccc6 /tests/test-prog-webdev-format.el
parent4dc607df73d5c7e05768bca39288c7a9ac22fbc3 (diff)
downloaddotemacs-7ff4e99bb9c7d6b821b0ccf7b81baaa194b570ac.tar.gz
dotemacs-7ff4e99bb9c7d6b821b0ccf7b81baaa194b570ac.zip
refactor(prog-webdev): extract the prettier format-command builder
I pulled the prettier command-string construction out of `cj/webdev-format-buffer` into `cj/--webdev-format-command`. The wrapper stays thin: resolve `(or buffer-file-name "file.ts")`, hand the command to `shell-command-on-region`, clamp point. With the command shape in a pure helper I can unit-test it directly.
Diffstat (limited to 'tests/test-prog-webdev-format.el')
0 files changed, 0 insertions, 0 deletions