add stub for testing feed::find
This commit is contained in:
parent
4a19470712
commit
8080352277
1 changed files with 12 additions and 0 deletions
|
@ -18,3 +18,15 @@ pub fn find(site: &str, channel_name: &str) -> Result<String> {
|
|||
.to_string();
|
||||
Ok(rss_url)
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
#[test]
|
||||
fn finds_rss_url() -> Result<()> {
|
||||
// TODO: need to inject wrapper for reqwest::blocking::get
|
||||
//
|
||||
// todo!();
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue