Skip to content

Commit

Permalink
unit test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
trask committed Dec 1, 2024
1 parent 19cce8f commit 28315d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lychee-lib/src/utils/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -426,10 +426,12 @@ mod tests {
let uris = vec![RawUri::from("#fragment")];
let requests = create(uris, &source, &root_path, &base, &None);

println!("{:?}", requests);

assert_eq!(requests.len(), 1);
assert!(requests
.iter()
.any(|r| r.uri.url.as_str() == "file:///some/page.html#fragment"));
.any(|r| r.uri.url.as_str() == "https://example.com/path/page.html#fragment"));
}

#[test]
Expand Down

0 comments on commit 28315d3

Please sign in to comment.