Skip to content

Commit

Permalink
Change assert_matches to assert_eq!
Browse files Browse the repository at this point in the history
  • Loading branch information
tonycdot committed Sep 10, 2021
1 parent bcbb220 commit 2e3613b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion crates/facetec-api-client/src/db_delete.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ mod tests {
});

let response: Response = serde_json::from_value(sample_response).unwrap();
assert_matches!(response, Response { success: true })
assert_eq!(response, Response { success: true })
}

#[tokio::test]
Expand Down
2 changes: 1 addition & 1 deletion crates/facetec-api-client/src/db_enroll.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ mod tests {
});

let response: Response = serde_json::from_value(sample_response).unwrap();
assert_matches!(response, Response { success: true, .. })
assert_eq!(response, Response { success: true })
}

#[tokio::test]
Expand Down
2 changes: 1 addition & 1 deletion crates/facetec-api-client/src/db_search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ mod tests {
}
});

let expected_error= "Tried to search a groupName when that groupName does not exist. groupName: humanode. Try adding a 3D FaceMap by calling /3d-db/enroll first.";
let expected_error = "Tried to search a groupName when that groupName does not exist. groupName: humanode. Try adding a 3D FaceMap by calling /3d-db/enroll first.";

Mock::given(matchers::method("POST"))
.and(matchers::path("/3d-db/search"))
Expand Down
5 changes: 2 additions & 3 deletions crates/facetec-api-client/src/reset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,11 @@ mod tests {
});

let response: Response = serde_json::from_value(sample_response).unwrap();
assert_matches!(
assert_eq!(
response,
Response {
did_delete_database: true,
success: true,
..
success: true
}
)
}
Expand Down

0 comments on commit 2e3613b

Please sign in to comment.