feat: migrate user regisration to use db_*

This commit is contained in:
realaravinth
2022-05-11 00:54:03 +05:30
parent 26a0935e5f
commit 4248959b13
2 changed files with 18 additions and 40 deletions

View File

@@ -150,6 +150,10 @@ pub async fn bad_post_req_test<T: Serialize>(
.to_request(),
)
.await;
if resp.status() != err.status_code() {
let resp_err: ErrorToResponse = test::read_body_json(resp).await;
panic!("error {}", resp_err.error);
}
assert_eq!(resp.status(), err.status_code());
let resp_err: ErrorToResponse = test::read_body_json(resp).await;
//println!("{}", txt.error);