Skip to content

Commit

Permalink
Update fs tests due to markdown mime guess change (#468)
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed Mar 3, 2020
1 parent 081b758 commit 5c3c31d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/fs.rs
Expand Up @@ -14,9 +14,15 @@ async fn file() {

let contents = fs::read("README.md").expect("fs::read README.md");
assert_eq!(res.headers()["content-length"], contents.len().to_string());
assert_eq!(res.headers()["content-type"], "text/x-markdown");
assert_eq!(res.headers()["accept-ranges"], "bytes");

let ct = &res.headers()["content-type"];
assert!(
ct == "text/x-markdown" || ct == "text/markdown",
"content-type is not markdown: {:?}",
ct,
);

assert_eq!(res.body(), &*contents);
}

Expand Down

0 comments on commit 5c3c31d

Please sign in to comment.