Added id check
All checks were successful
Rust Build / Check (pull_request) Successful in 42s
Rust Build / Test Suite (pull_request) Successful in 47s
Rust Build / Rustfmt (pull_request) Successful in 26s
Rust Build / Clippy (pull_request) Successful in 48s
Rust Build / build (pull_request) Successful in 1m9s
All checks were successful
Rust Build / Check (pull_request) Successful in 42s
Rust Build / Test Suite (pull_request) Successful in 47s
Rust Build / Rustfmt (pull_request) Successful in 26s
Rust Build / Clippy (pull_request) Successful in 48s
Rust Build / build (pull_request) Successful in 1m9s
This commit is contained in:
@@ -220,6 +220,8 @@ mod tests {
|
|||||||
.unwrap();
|
.unwrap();
|
||||||
let parsed_body: Response = serde_json::from_slice(&body).unwrap();
|
let parsed_body: Response = serde_json::from_slice(&body).unwrap();
|
||||||
|
|
||||||
|
assert_eq!(false, parsed_body.data.id.is_nil(), "Id is not populated");
|
||||||
|
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
usr.username, parsed_body.data.username,
|
usr.username, parsed_body.data.username,
|
||||||
"Usernames do not match"
|
"Usernames do not match"
|
||||||
|
Reference in New Issue
Block a user