pages use const routes

This commit is contained in:
realaravinth
2021-05-02 18:11:56 +05:30
parent 0829ee1c74
commit 9d6b27a95b
15 changed files with 119 additions and 81 deletions

View File

@@ -125,7 +125,7 @@ async fn auth_works() {
.await;
assert_eq!(signout_resp.status(), StatusCode::OK);
let headers = signout_resp.headers();
assert_eq!(headers.get(header::LOCATION).unwrap(), "/login")
assert_eq!(headers.get(header::LOCATION).unwrap(), PAGES.auth.login);
}
#[actix_rt::test]