Skip to content

Commit

Permalink
fix(tests): fix test_body param position (DDtKey#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
CuriousCorrelation committed May 30, 2022
1 parent 6d58005 commit b4fe565
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ pub async fn enum_extract(req: &ServiceRequest) -> Result<Vec<Role>, Error> {
pub async fn test_body(resp: ServiceResponse, expected_body: &str) {
let body = test::read_body(resp).await;

assert_eq!(expected_body, String::from_utf8(body.to_vec()).unwrap());
assert_eq!(String::from_utf8(body.to_vec()).unwrap(), expected_body);
}

#[derive(Deserialize)]
Expand Down

0 comments on commit b4fe565

Please sign in to comment.