aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-05-31 16:13:34 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-05-31 16:13:34 +0300
commitd6c358d18b658c2768cad4d65a3a723402014d88 (patch)
treeb4ca13f6bcb6b2ffac9acc45874ee57445005aff /src
parentb778162a9f57b64ce9a067386b7de27d4cbcbafc (diff)
fix: normalize pane split cwd assertion
Diffstat (limited to 'src')
-rw-r--r--src/app/mod.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/app/mod.rs b/src/app/mod.rs
index 273016db..11931e51 100644
--- a/src/app/mod.rs
+++ b/src/app/mod.rs
@@ -2706,9 +2706,11 @@ mod tests {
assert_eq!(response["result"]["type"], "pane_info");
assert_eq!(response["result"]["pane"]["tab_id"], target_tab_id);
+ let response_cwd =
+ std::path::PathBuf::from(response["result"]["pane"]["cwd"].as_str().unwrap());
assert_eq!(
- response["result"]["pane"]["cwd"],
- split_cwd.display().to_string()
+ crate::worktree::canonical_or_original(&response_cwd),
+ crate::worktree::canonical_or_original(&split_cwd)
);
assert_eq!(response["result"]["pane"]["focused"], false);
assert_eq!(app.state.active, Some(0));