From a75cae54b10d446ce2dd50c0c0f0d32342619849 Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 9 Sep 2021 01:17:56 +0200 Subject: [PATCH] Add failing test --- fixtures/offline/404.html/.gitkeep | 0 fixtures/offline/another page/.gitkeep | 0 fixtures/offline/index.html | 10 ++++++++-- lychee-bin/tests/cli.rs | 4 ++-- 4 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 fixtures/offline/404.html/.gitkeep create mode 100644 fixtures/offline/another page/.gitkeep diff --git a/fixtures/offline/404.html/.gitkeep b/fixtures/offline/404.html/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/fixtures/offline/another page/.gitkeep b/fixtures/offline/another page/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/fixtures/offline/index.html b/fixtures/offline/index.html index b7789c0..8594d3f 100644 --- a/fixtures/offline/index.html +++ b/fixtures/offline/index.html @@ -1,9 +1,9 @@ - Post 2 + Index -

Post 2 Title

+

Index Title

diff --git a/lychee-bin/tests/cli.rs b/lychee-bin/tests/cli.rs index 01d2d98..4ed0e26 100644 --- a/lychee-bin/tests/cli.rs +++ b/lychee-bin/tests/cli.rs @@ -160,8 +160,8 @@ mod cli { .env_clear() .assert() .success() - .stdout(contains("Total............2")) - .stdout(contains("Successful.......2")); + .stdout(contains("Total............4")) + .stdout(contains("Successful.......4")); } #[test]