tests: get status code from err

This commit is contained in:
realaravinth
2021-07-17 18:57:33 +05:30
parent c3e43ff584
commit 1b0a95e768
5 changed files with 6 additions and 16 deletions

View File

@@ -170,7 +170,6 @@ mod tests {
ROUTES.account.update_password,
&update_password,
ServiceError::PasswordsDontMatch,
StatusCode::BAD_REQUEST,
)
.await;
@@ -186,7 +185,6 @@ mod tests {
ROUTES.account.update_password,
&update_password,
ServiceError::WrongPassword,
StatusCode::UNAUTHORIZED,
)
.await;

View File

@@ -157,7 +157,6 @@ async fn email_udpate_password_validation_del_userworks() {
ROUTES.account.update_email,
&email_payload,
ServiceError::EmailTaken,
StatusCode::BAD_REQUEST,
)
.await;
@@ -171,7 +170,6 @@ async fn email_udpate_password_validation_del_userworks() {
ROUTES.account.delete,
&payload,
ServiceError::WrongPassword,
StatusCode::UNAUTHORIZED,
)
.await;