-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add deeplinks for search history item
- Loading branch information
Showing
3 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
src/unit_tests/deep_links/search_history_item_deep_links.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
use crate::deep_links::SearchHistoryItemDeepLinks; | ||
|
||
#[test] | ||
fn search_history_item_deep_links() { | ||
let query = "better call saul".to_string(); | ||
let deep_link = SearchHistoryItemDeepLinks::from(&query); | ||
assert_eq!( | ||
deep_link.search, | ||
"stremio:///search?query=better%20call%20saul".to_string(), | ||
); | ||
} |