Updated the hrefs in the integration tests
This commit is contained in:
parent
2bdca9e720
commit
e9370c9169
|
@ -40,10 +40,10 @@ fn make_sure_bottom_level_files_contain_links_to_chapters() {
|
||||||
let dest = temp.path().join("book");
|
let dest = temp.path().join("book");
|
||||||
let links = vec![
|
let links = vec![
|
||||||
r#"href="intro.html""#,
|
r#"href="intro.html""#,
|
||||||
r#"href="./first/index.html""#,
|
r#"href="first/index.html""#,
|
||||||
r#"href="./first/nested.html""#,
|
r#"href="first/nested.html""#,
|
||||||
r#"href="./second.html""#,
|
r#"href="second.html""#,
|
||||||
r#"href="./conclusion.html""#,
|
r#"href="conclusion.html""#,
|
||||||
];
|
];
|
||||||
|
|
||||||
let files_in_bottom_dir = vec!["index.html", "intro.html", "second.html", "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![
|
let links = vec![
|
||||||
r#"<base href="../">"#,
|
r#"<base href="../">"#,
|
||||||
r#"href="intro.html""#,
|
r#"href="intro.html""#,
|
||||||
r#"href="./first/index.html""#,
|
r#"href="first/index.html""#,
|
||||||
r#"href="./first/nested.html""#,
|
r#"href="first/nested.html""#,
|
||||||
r#"href="./second.html""#,
|
r#"href="second.html""#,
|
||||||
r#"href="./conclusion.html""#,
|
r#"href="conclusion.html""#,
|
||||||
];
|
];
|
||||||
|
|
||||||
let files_in_nested_dir = vec!["index.html", "nested.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(
|
assert_contains_strings(
|
||||||
first.join("index.html"),
|
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(
|
assert_contains_strings(
|
||||||
first.join("nested.html"),
|
first.join("nested.html"),
|
||||||
&[
|
&[
|
||||||
r##"href="./first/nested.html#some-section" id="some-section""##,
|
r##"href="first/nested.html#some-section" id="some-section""##,
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue