this repo has no description
1mod common;
2use common::*;
3use reqwest::StatusCode;
4
5#[tokio::test]
6async fn test_list_notifications() {
7 let client = client();
8 let params = [
9 ("limit", "30"),
10 ];
11 let res = client.get(format!("{}/xrpc/app.bsky.notification.listNotifications", BASE_URL))
12 .query(¶ms)
13 .bearer_auth(AUTH_TOKEN)
14 .send()
15 .await
16 .expect("Failed to send request");
17
18 assert_eq!(res.status(), StatusCode::OK);
19}
20
21#[tokio::test]
22async fn test_get_unread_count() {
23 let client = client();
24 let res = client.get(format!("{}/xrpc/app.bsky.notification.getUnreadCount", BASE_URL))
25 .bearer_auth(AUTH_TOKEN)
26 .send()
27 .await
28 .expect("Failed to send request");
29
30 assert_eq!(res.status(), StatusCode::OK);
31}