Skip to content

Commit c25b1f7

Browse files
author
pyrossh
committed
fix tests
1 parent 6737750 commit c25b1f7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ rust-embed-utils = { version = "8.4.0", path = "utils"}
6969

7070
include-flate = { version = "0.3", optional = true }
7171
actix-web = { version = "4", optional = true }
72-
mime_guess = { version = "2", optional = true }
72+
mime_guess = { version = "2.0.5", optional = true }
7373
hex = { version = "0.4.3", optional = true }
7474
tokio = { version = "1.0", optional = true, features = ["macros", "rt-multi-thread"] }
7575
warp = { version = "0.3", default-features = false, optional = true }

tests/mime_guess.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ fn css_mime_is_correct() {
1919
#[test]
2020
fn js_mime_is_correct() {
2121
let js_file: EmbeddedFile = Asset::get("main.js").expect("main.js exists");
22-
assert_eq!(js_file.metadata.mimetype(), "application/javascript");
22+
assert_eq!(js_file.metadata.mimetype(), "text/javascript");
2323
}
2424

2525
#[test]

0 commit comments

Comments
 (0)