diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-23 15:34:32 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-23 15:34:32 +0300 |
| commit | c4dd318ea3770d9d0245d077c7ed48c2689384c9 (patch) | |
| tree | 32de9f1b17ecbb691ba49bf7ef877a5af4f8a1fa /src/app/api | |
| parent | 473ad70319362227ae3aa55af1864c7aec4f1fde (diff) | |
test: normalize worktree source path assertion
Diffstat (limited to 'src/app/api')
| -rw-r--r-- | src/app/api/worktrees.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/app/api/worktrees.rs b/src/app/api/worktrees.rs index e11e69ce..2ae282a1 100644 --- a/src/app/api/worktrees.rs +++ b/src/app/api/worktrees.rs @@ -1367,7 +1367,10 @@ mod tests { let ResponseResult::WorktreeList { source, worktrees } = success.result else { panic!("expected worktree_list response"); }; - assert_eq!(source.repo_root, repo.display().to_string()); + assert_eq!( + crate::worktree::canonical_or_original(std::path::Path::new(&source.repo_root)), + crate::worktree::canonical_or_original(&repo) + ); assert_eq!( source.source_workspace_id.as_deref(), Some(parent_id.as_str()) |
