fix(client): handle new gated and quarantined error types (#187)

* fix(client): handle new gated and quarantined error types

* test(client): add test for gated and quarantined
This commit is contained in:
Matthew Esposito
2024-07-21 14:22:54 -04:00
committed by GitHub
parent 374238abc3
commit 27b56c1781
2 changed files with 16 additions and 0 deletions

View File

@ -515,3 +515,11 @@ async fn test_fetching_subreddit() {
let subreddit = subreddit("rust", false).await;
assert!(subreddit.is_ok());
}
#[tokio::test(flavor = "multi_thread")]
async fn test_gated_and_quarantined() {
let quarantined = subreddit("edgy", true).await;
assert!(quarantined.is_ok());
let gated = subreddit("drugs", true).await;
assert!(gated.is_ok());
}