We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f463a5d commit 583ceb8Copy full SHA for 583ceb8
tests/client_tests.rs
@@ -39,6 +39,20 @@ mod mock {
39
});
40
}
41
42
+ #[test]
43
+ fn search_with_authentication_error() {
44
+ b!(async {
45
+ let response = podcast_api::Client::new(Some("wrong_key"))
46
+ .search(&json!({
47
+ "q": "dummy",
48
+ "sort_by_date": 1
49
+ }))
50
+ .await
51
+ .unwrap();
52
+ assert_eq!(response.response.status(), http::StatusCode::UNAUTHORIZED);
53
+ });
54
+ }
55
+
56
#[test]
57
fn typeahead() {
58
b!(async {
0 commit comments