mirror of
https://github.com/Hopiu/lychee.git
synced 2026-03-16 20:50:25 +00:00
Add regression test
This commit is contained in:
parent
8ec86dfee4
commit
08dabb06b2
2 changed files with 18 additions and 0 deletions
6
fixtures/TEST_LOCAL_DIRECTORIES.md
vendored
Normal file
6
fixtures/TEST_LOCAL_DIRECTORIES.md
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
The following links should all be valid and be detected as such by lychee.
|
||||||
|
|
||||||
|
[link to root dir](file:///)
|
||||||
|
[link to /dev](file:///dev/)
|
||||||
|
[link to current dir](.)
|
||||||
|
[relative link to docs](../docs/)
|
||||||
|
|
@ -280,6 +280,18 @@ mod cli {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn test_local_directories() -> Result<()> {
|
||||||
|
test_json_output!(
|
||||||
|
"TEST_LOCAL_DIRECTORIES.md",
|
||||||
|
MockResponseStats {
|
||||||
|
total: 4,
|
||||||
|
successful: 4,
|
||||||
|
..MockResponseStats::default()
|
||||||
|
}
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_email() -> Result<()> {
|
fn test_email() -> Result<()> {
|
||||||
test_json_output!(
|
test_json_output!(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue