diff --git a/src/utils.rs b/src/utils.rs index 5977576..d45e6b2 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -1154,3 +1154,10 @@ async fn test_fetching_ws() { assert!(post.ws_url.starts_with("wss://k8s-lb.wss.redditmedia.com/link/")); } } + +#[test] +fn test_rewriting_image_links() { + let input = r#"
"#; + let output = r#""#; + assert_eq!(rewrite_urls(input), output); +}