diff options
Diffstat (limited to 'tests/test-ai-vterm--launch-command.el')
| -rw-r--r-- | tests/test-ai-vterm--launch-command.el | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/test-ai-vterm--launch-command.el b/tests/test-ai-vterm--launch-command.el index 464c88b6..17f02f02 100644 --- a/tests/test-ai-vterm--launch-command.el +++ b/tests/test-ai-vterm--launch-command.el @@ -31,6 +31,22 @@ " -s aiv-foo " (cj/--ai-vterm-launch-command "/code/foo"))))) +(ert-deftest test-ai-vterm--launch-command-names-window () + "Normal: `-n <window-name>' so the claude window is named distinctly." + (let ((cj/ai-vterm-claude-command "claude") + (cj/ai-vterm-tmux-window-name "ai")) + (should (string-match-p + " -n ai " + (cj/--ai-vterm-launch-command "/code/foo"))))) + +(ert-deftest test-ai-vterm--launch-command-honors-custom-window-name () + "Boundary: a non-default window name is what `-n' gets." + (let ((cj/ai-vterm-claude-command "claude") + (cj/ai-vterm-tmux-window-name "claude")) + (should (string-match-p + " -n claude " + (cj/--ai-vterm-launch-command "/code/foo"))))) + (ert-deftest test-ai-vterm--launch-command-includes-start-directory () "Normal: `-c <dir>' so the new session's first window starts in DIR." (let ((cj/ai-vterm-claude-command "claude")) |
