aboutsummaryrefslogtreecommitdiffstats
path: root/tests/serve_request.rs
diff options
context:
space:
mode:
authorcyqsimon <28627918+cyqsimon@users.noreply.github.com>2022-09-15 18:56:02 +0000
committerGitHub <noreply@github.com>2022-09-15 18:56:02 +0000
commit82a3207671e3a01eb011129e1f34b653ca7eb39c (patch)
treedf7667ba5db89c496db7a26e2628f32e56f17f65 /tests/serve_request.rs
parentAdd tooltip on QR code (diff)
parentMerge pull request #902 from kianmeng/fix-typos (diff)
downloadminiserve-82a3207671e3a01eb011129e1f34b653ca7eb39c.tar.gz
miniserve-82a3207671e3a01eb011129e1f34b653ca7eb39c.zip
Merge branch 'master' into qrcode
Diffstat (limited to 'tests/serve_request.rs')
-rw-r--r--tests/serve_request.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/serve_request.rs b/tests/serve_request.rs
index 3f5eeff..f376469 100644
--- a/tests/serve_request.rs
+++ b/tests/serve_request.rs
@@ -33,6 +33,9 @@ fn serves_requests_with_no_options(tmpdir: TempDir) -> Result<(), Error> {
for &file in FILES {
assert!(parsed.find(|x: &Node| x.text() == file).next().is_some());
}
+ for &dir in DIRECTORIES {
+ assert!(parsed.find(|x: &Node| x.text() == dir).next().is_some());
+ }
child.kill()?;
@@ -135,7 +138,7 @@ fn serves_requests_symlinks(
let broken = "symlink broken";
// Set up some basic symlinks:
- // to dir, to file, to non-existant location
+ // to dir, to file, to non-existent location
let orig = DIRECTORIES[0].strip_suffix("/").unwrap();
let link = server.path().join(dir.strip_suffix("/").unwrap());
symlink_dir(orig, link).expect("Couldn't create symlink");
@@ -166,7 +169,7 @@ fn serves_requests_symlinks(
}
// If following symlinks is deactivated, we can just skip this iteration as we assorted
- // above tht no entries in the listing can be found for symlinks in that case.
+ // above the no entries in the listing can be found for symlinks in that case.
if no_symlinks {
continue;
}