Skip to content

Commit

Permalink
fix(tests): declare and use mediatype in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Asone committed Jul 18, 2024
1 parent 3a980da commit 73d7b92
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion nostrss-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ url = "2.5.2"
tempfile = "3.10.1"
mockall = "0.12.1"
mime = "0.3.17"

mediatype = "0.19.18"
[dependencies.nostrss_grpc]
path = "../nostrss-grpc"

Expand Down
2 changes: 1 addition & 1 deletion nostrss-core/src/template/template.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ mod tests {
#[test]
fn test_custom_template() {
from_filename(".env.test").ok();
let text_plain: MediaTypeBuf = "text/plain; charset=UTF-8".parse().unwrap();
let text_plain: mediatype::MediaTypeBuf = "text/plain; charset=UTF-8".parse().unwrap();
let entry = Entry {
title: Some(Text {
content_type: text_plain,
Expand Down

0 comments on commit 73d7b92

Please sign in to comment.