Fix unused import
This happens because it is only used in the test configuration.
This commit is contained in:
parent
8181445d99
commit
1d3b99c0df
1 changed files with 1 additions and 3 deletions
|
|
@ -1,12 +1,10 @@
|
||||||
use mdbook::MDBook;
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn remove_emphasis_works() {
|
fn remove_emphasis_works() {
|
||||||
// Tests that the remove-emphasis example works as expected.
|
// Tests that the remove-emphasis example works as expected.
|
||||||
|
|
||||||
// Workaround for https://github.com/rust-lang/mdBook/issues/1424
|
// Workaround for https://github.com/rust-lang/mdBook/issues/1424
|
||||||
std::env::set_current_dir("examples/remove-emphasis").unwrap();
|
std::env::set_current_dir("examples/remove-emphasis").unwrap();
|
||||||
let book = MDBook::load(".").unwrap();
|
let book = mdbook::MDBook::load(".").unwrap();
|
||||||
book.build().unwrap();
|
book.build().unwrap();
|
||||||
let ch1 = std::fs::read_to_string("book/chapter_1.html").unwrap();
|
let ch1 = std::fs::read_to_string("book/chapter_1.html").unwrap();
|
||||||
assert!(ch1.contains("This has light emphasis and bold emphasis."));
|
assert!(ch1.contains("This has light emphasis and bold emphasis."));
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue