Browse Source

Only test windows path handling on windows.

Otherwise Path won't know what to do.
index-subcmd
Johan Sigfrids 6 years ago
parent
commit
9be5e640ff
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/cmd/serve.rs

+ 1
- 0
src/cmd/serve.rs View File

@@ -398,6 +398,7 @@ mod tests {


#[test]
#[cfg(windows)]
fn windows_path_handling() {
let expected = (ChangeKind::Templates, PathBuf::from("/templates/hello.html"));
let pwd = Path::new(r#"C:\\Users\johan\site"#);


Loading…
Cancel
Save