diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-14 01:30:33 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-14 01:30:33 -0500 |
| commit | 54f54840686b29d510b360caeb43d254aec09ffe (patch) | |
| tree | ca03723a186d8e1f272de6096bf33ae7eb5db52c /modules/eshell-config.el | |
| parent | a9a9e56148e9ab83f9abc4e4c531be86974364d1 (diff) | |
| download | dotemacs-54f54840686b29d510b360caeb43d254aec09ffe.tar.gz dotemacs-54f54840686b29d510b360caeb43d254aec09ffe.zip | |
test(hugo-config): cover new-post, export, navigation, preview, publish
Sibling tests covered the pure helpers (`cj/hugo--post-file-path`, `cj/hugo--post-template`, `cj/hugo--post-metadata`, `cj/hugo--collect-drafts`, `cj/hugo-open-blog-dir-external`, `cj/hugo-toggle-draft`). This batch covers the remaining commands and preview helpers:
- `cj/hugo-new-post`: writes the template to a slugged file, errors when one already exists.
- `cj/hugo-export-post`: errors outside org-mode, delegates to `org-hugo-export-to-md` otherwise.
- `cj/hugo-open-blog-dir`: ensures the dir exists and opens dired on it.
- `cj/hugo-open-draft`: messages when no drafts, otherwise picks via `completing-read` and opens.
- `cj/hugo--preview-filter`: opens the browser when Hugo prints "Web Server is available", ignores arbitrary output.
- `cj/hugo--preview-sentinel`: clears the process var on clean exit, messages on a non-zero exit.
- `cj/hugo-preview`: stops a running server, starts one when stopped (verifying `start-process` got the "server" arg).
- `cj/hugo-publish`: hands off to `magit-status-setup-buffer` on `website-dir`.
ox-hugo's `org-hugo-slug` is stubbed via `defun` (the package isn't installed in batch); `require`, `org-hugo-export-to-md`, `dired`, `find-file`, `browse-url`, `start-process`, `kill-process`, and `magit-status-setup-buffer` are stubbed per-test.
Diffstat (limited to 'modules/eshell-config.el')
0 files changed, 0 insertions, 0 deletions
