diff --git a/tests/rendered_output.rs b/tests/rendered_output.rs index c588c9f9..83d2a0e2 100644 --- a/tests/rendered_output.rs +++ b/tests/rendered_output.rs @@ -40,10 +40,10 @@ fn make_sure_bottom_level_files_contain_links_to_chapters() { let dest = temp.path().join("book"); let links = vec![ r#"href="intro.html""#, - r#"href="./first/index.html""#, - r#"href="./first/nested.html""#, - r#"href="./second.html""#, - r#"href="./conclusion.html""#, + r#"href="first/index.html""#, + r#"href="first/nested.html""#, + r#"href="second.html""#, + r#"href="conclusion.html""#, ]; let files_in_bottom_dir = vec!["index.html", "intro.html", "second.html", "conclusion.html"]; @@ -63,10 +63,10 @@ fn check_correct_cross_links_in_nested_dir() { let links = vec![ r#""#, r#"href="intro.html""#, - r#"href="./first/index.html""#, - r#"href="./first/nested.html""#, - r#"href="./second.html""#, - r#"href="./conclusion.html""#, + r#"href="first/index.html""#, + r#"href="first/nested.html""#, + r#"href="second.html""#, + r#"href="conclusion.html""#, ]; let files_in_nested_dir = vec!["index.html", "nested.html"]; @@ -78,14 +78,14 @@ fn check_correct_cross_links_in_nested_dir() { assert_contains_strings( first.join("index.html"), &[ - r##"href="./first/index.html#some-section" id="some-section""##, + r##"href="first/index.html#some-section" id="some-section""##, ], ); assert_contains_strings( first.join("nested.html"), &[ - r##"href="./first/nested.html#some-section" id="some-section""##, + r##"href="first/nested.html#some-section" id="some-section""##, ], ); }