diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-03 21:32:09 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-03 21:32:09 -0500 |
| commit | 250db085bd2a2860636bb96c215dcbaa5efe91e9 (patch) | |
| tree | 2d93e27ccd66b6048a1c21c88b87c3e114c20305 /modules/text-config.el | |
| parent | 2f8d8989856073cbed5f9159d02089903bc5343e (diff) | |
| download | dotemacs-250db085bd2a2860636bb96c215dcbaa5efe91e9.tar.gz dotemacs-250db085bd2a2860636bb96c215dcbaa5efe91e9.zip | |
test: re-point projectile revert tests at the decision helper
The legacy `cj/--projectile-revert-on-fail` wrapper and `cj/--projectile-revert-state` global were removed when the closure-based revert refactor landed (commit 2f8d898). The corresponding tests in `test-dev-fkeys--projectile-revert-on-fail.el` and the around-revert / capture-cmd files still referenced the legacy symbols, so 7 tests had been failing on `main` since that commit.
I re-pointed each test at `cj/--projectile-revert-state-on-fail`, the pure decision helper that the closure-based hook delegates to. Each test now passes the captured `state` plist as an explicit argument instead of binding the old global. Test names updated to match the new target.
I dropped two tests that no longer have a target. `revert-on-fail-clears-state` was specific to the wrapper clearing the global on completion, and there is no global to clear now. `revert-on-fail-removes-itself` was specific to the wrapper removing itself from `compilation-finish-functions`. The closure-based hook removes itself differently and is covered by the buffer-local hook tests in `test-dev-fkeys--projectile-around-revert.el`.
The around-revert and capture-cmd tests also lost their `cj/--projectile-revert-state nil` let-bindings since that variable no longer exists.
21 projectile-related tests pass together.
Diffstat (limited to 'modules/text-config.el')
0 files changed, 0 insertions, 0 deletions
