add version command and more tests
This commit is contained in:
@@ -94,3 +94,14 @@ fn test_rewrite_refered_tiktok() {
|
||||
Some("https://vxtiktok.com/@/video/7417808362957589778".to_string())
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_rewrite_refered_instagram() {
|
||||
let url_and_domain =
|
||||
get_domain_from_text("https://www.instagram.com/reel/DJAE4JXSvHn/".to_string());
|
||||
let domain = filter_string(url_and_domain.0, url_and_domain.1);
|
||||
assert_eq!(
|
||||
domain,
|
||||
Some("https://ddinstagram.com/reel/DJAE4JXSvHn/".to_string())
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user