fix tests

This commit is contained in:
mpostma 2021-03-15 18:38:13 +01:00
parent 94bd14ede3
commit 07bb1e2c4e
No known key found for this signature in database
GPG key ID: CBC8A7C1D7A28C3A
3 changed files with 8 additions and 4 deletions

View file

@ -13,6 +13,7 @@ async fn update_primary_key() {
assert_eq!(code, 200);
assert_eq!(response["uid"], "test");
assert_eq!(response["name"], "test");
assert!(response.get("createdAt").is_some());
assert!(response.get("updatedAt").is_some());
@ -21,7 +22,7 @@ async fn update_primary_key() {
assert!(created_at < updated_at);
assert_eq!(response["primaryKey"], "primary");
assert_eq!(response.as_object().unwrap().len(), 4);
assert_eq!(response.as_object().unwrap().len(), 5);
}
#[actix_rt::test]