Skip to content

Commit

Permalink
New integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
trask committed Dec 1, 2024
1 parent 4d3ef2b commit 462764f
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions lychee-bin/tests/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,26 @@ mod cli {
.stdout(contains("2 Errors"));
}

#[test]
fn test_resolve_paths_from_root_path_and_base_url() {
let mut cmd = main_command();
let dir = fixtures_path();

cmd.arg("--offline")
.arg("--include-fragments")
.arg("--root-path")
.arg("/resolve_paths_from_root_path")
.arg("--base")
.arg(&dir)
.arg(dir.join("resolve_paths_from_root_path").join("nested").join("index.html"))
.env_clear()
.assert()
.failure()
.stdout(contains("7 Total"))
.stdout(contains("5 OK"))
.stdout(contains("2 Errors"));
}

#[test]
fn test_youtube_quirk() {
let url = "https://www.youtube.com/watch?v=NlKuICiT470&list=PLbWDhxwM_45mPVToqaIZNbZeIzFchsKKQ&index=7";
Expand Down

0 comments on commit 462764f

Please sign in to comment.