notifications view

This commit is contained in:
realaravinth
2021-07-12 21:22:26 +05:30
parent b7ec1bca22
commit 47cca5c9a7
14 changed files with 163 additions and 78 deletions

View File

@@ -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);
}