mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-12 18:45:41 +00:00
notifications view
This commit is contained in:
@@ -60,14 +60,13 @@ mod tests {
|
||||
PAGES.home,
|
||||
PAGES.panel.sitekey.add,
|
||||
PAGES.panel.sitekey.list,
|
||||
PAGES.panel.notifications,
|
||||
];
|
||||
|
||||
for url in urls.iter() {
|
||||
let resp = test::call_service(
|
||||
&app,
|
||||
test::TestRequest::get().uri(url).to_request(),
|
||||
)
|
||||
.await;
|
||||
let resp =
|
||||
test::call_service(&app, test::TestRequest::get().uri(url).to_request())
|
||||
.await;
|
||||
assert_eq!(resp.status(), StatusCode::FOUND);
|
||||
|
||||
let authenticated_resp = test::call_service(
|
||||
@@ -91,11 +90,9 @@ mod tests {
|
||||
let urls = vec![PAGES.auth.login, PAGES.auth.join];
|
||||
|
||||
for url in urls.iter() {
|
||||
let resp = test::call_service(
|
||||
&app,
|
||||
test::TestRequest::get().uri(url).to_request(),
|
||||
)
|
||||
.await;
|
||||
let resp =
|
||||
test::call_service(&app, test::TestRequest::get().uri(url).to_request())
|
||||
.await;
|
||||
|
||||
assert_eq!(resp.status(), StatusCode::OK);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user