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 | 8364f48849527ab9fbe839ddedc1b4d74ea23125 (patch) | |
| tree | cb3358cf3974fad8608e61393b5cfdcd05da65ab /tests | |
| parent | ee5f857fbd3adce535bc3c498984c3b0103d1a82 (diff) | |
| download | dotemacs-8364f48849527ab9fbe839ddedc1b4d74ea23125.tar.gz dotemacs-8364f48849527ab9fbe839ddedc1b4d74ea23125.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.
Diffstat (limited to 'tests')
| -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 906a4768..4a148a5c 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))) |
