diff options
| author | Craig Jennings <c@cjennings.net> | 2026-06-15 22:15:27 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-06-15 22:15:27 -0500 |
| commit | cd1be10d4bcdb37b804e62157637e298006164dd (patch) | |
| tree | 63b1677332bfd03eac03385a756f0576c6bae6e5 | |
| parent | a90a7826eb27dcedfb5448f8fae8eb423abbe8f4 (diff) | |
| download | dotemacs-cd1be10d4bcdb37b804e62157637e298006164dd.tar.gz dotemacs-cd1be10d4bcdb37b804e62157637e298006164dd.zip | |
test(ai-term): stub default-direction in display-rule test
Same fragility as the sibling tests: it stubbed env-laptop-p (now unused by the direction logic) and passed only because the batch frame is landscape. Stub the direction directly.
| -rw-r--r-- | tests/test-ai-term--display-rule.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-ai-term--display-rule.el b/tests/test-ai-term--display-rule.el index 906a47680..4a148a5c0 100644 --- a/tests/test-ai-term--display-rule.el +++ b/tests/test-ai-term--display-rule.el @@ -38,7 +38,7 @@ desktop branch; on a laptop the agent would land below instead." (let ((name "agent [display-rule-test]")) (test-ai-term--cleanup name) (unwind-protect - (cl-letf (((symbol-function 'env-laptop-p) (lambda () nil))) + (cl-letf (((symbol-function 'cj/--ai-term-default-direction) (lambda (&rest _) 'right))) (test-ai-term--with-clean-frame (let* ((buf (get-buffer-create name)) (win (display-buffer buf))) |
