diff --git a/src/lib.rs b/src/lib.rs index 9823011a..9a48b51b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -4621,13 +4621,6 @@ mod tests { assert!(!parses_with_decorator_as("export @dec class A {}", SourceType::d_ts())); } - #[cfg(not(windows))] - #[test] - fn non_windows_behavior_is_unchanged() { - assert_eq!(file_url_to_path("file:///a/b.ts"), Some(PathBuf::from("/a/b.ts"))); - assert_eq!(file_url_to_path("file:///a%20b.ts"), Some(PathBuf::from("/a b.ts"))); - } - // Expected strings below are what Node's `pathToFileURL` writes for the // same path (issue #837). #[test] diff --git a/src/windows_file_url.rs b/src/windows_file_url.rs index 1fefb422..bdf9c9b5 100644 --- a/src/windows_file_url.rs +++ b/src/windows_file_url.rs @@ -639,16 +639,6 @@ mod tests { // `file:///C:/…` form. The module is compiled into test builds on every // platform, so these run wherever `cargo test` does. - #[test] - fn windows_drive_url_parses() { - assert_eq!(url_to_path("file:///C:/a/b.ts"), Some(PathBuf::from("C:/a/b.ts"))); - } - - #[test] - fn windows_drive_path_generates() { - assert_eq!(path_to_url("C:\\a\\b.ts"), "file:///C:/a/b.ts"); - } - // Issue #837: the drive form is percent-encoded like `pathToFileURL` // writes it, while the drive letter keeps its case and its `:`. #[test] @@ -668,14 +658,6 @@ mod tests { } } - #[test] - fn windows_unc_url_parses_to_unc_path() { - assert_eq!( - url_to_path("file://server/share/dir/module.ts"), - Some(PathBuf::from("\\\\server\\share\\dir\\module.ts")) - ); - } - #[test] fn windows_unc_url_without_path_parses_to_server_root() { assert_eq!(url_to_path("file://server"), Some(PathBuf::from("\\\\server\\")));