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;