mirror of
https://github.com/denoland/deno.git
synced 2025-01-08 15:19:40 -05:00
Don't test resolve_from_cwd_absolute() on Windows (#2911)
This commit is contained in:
parent
dd70d8622b
commit
749ada608e
1 changed files with 3 additions and 5 deletions
|
@ -182,13 +182,11 @@ mod tests {
|
|||
assert_eq!(resolve_from_cwd("a/..").unwrap().0, cwd);
|
||||
}
|
||||
|
||||
// TODO: Get a good expected value here for Windows.
|
||||
#[cfg(not(windows))]
|
||||
#[test]
|
||||
fn resolve_from_cwd_absolute() {
|
||||
let expected = if cfg!(windows) {
|
||||
Path::new("C:\\a")
|
||||
} else {
|
||||
Path::new("/a")
|
||||
};
|
||||
let expected = Path::new("/a");
|
||||
assert_eq!(resolve_from_cwd("/a").unwrap().0, expected);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue