Skip to content

Commit

Permalink
Canonicalize test paths
Browse files Browse the repository at this point in the history
  • Loading branch information
cd-work committed Sep 28, 2023
1 parent 8319f05 commit 6a607ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lockfile_generator/src/npm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ mod tests {
fs::write(&project_manifest, NON_WORKSPACE_MANIFEST).unwrap();

let root = find_workspace_root(&project_manifest).unwrap();
assert_eq!(root, tempdir.path().to_path_buf());
assert_eq!(root, tempdir.path().to_path_buf().canonicalize().unwrap());
}

#[test]
Expand All @@ -140,6 +140,6 @@ mod tests {
fs::write(&manifest_path, NON_WORKSPACE_MANIFEST).unwrap();

let root = find_workspace_root(&manifest_path).unwrap();
assert_eq!(root, tempdir.path().to_path_buf());
assert_eq!(root, tempdir.path().to_path_buf().canonicalize().unwrap());
}
}

0 comments on commit 6a607ec

Please sign in to comment.