Skip to content

Commit

Permalink
Integration test both at the same time
Browse files Browse the repository at this point in the history
  • Loading branch information
trask committed Dec 1, 2024
1 parent 196a441 commit 1ce48cf
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions lychee-bin/tests/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,24 @@ 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("--root-path")
.arg("/resolve_paths")
.arg("--base")
.arg(&dir)
.arg(dir.join("resolve_paths").join("index.html"))
.env_clear()
.assert()
.success()
.stdout(contains("3 Total"))
.stdout(contains("3 OK"));
}

#[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 1ce48cf

Please sign in to comment.