Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions lychee-bin/tests/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2722,4 +2722,21 @@ mod cli {
.stdout(contains("https://example.com/glob_dir/ts"))
.stdout(contains("https://example.com/glob_dir/md"));
}

/// URLs specified on the command line should also always be checked.
/// For example, sitemap URLs often end with `.xml` which is not
/// a file extension we would check by default.
#[test]
fn test_url_inputs_always_get_checked_no_matter_their_extension() {
let url_input = "https://example.com/sitemap.xml";

main_command()
.arg("--verbose")
.arg("--dump")
.arg(url_input)
.assert()
.success()
.stderr("") // Ensure stderr is empty
.stdout(contains("https://example.com/sitemap.xml"));
}
}
Loading