Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Missing fixes
  • Loading branch information
michalfita committed Nov 30, 2025
commit 90f130810278c80964b252132709c23610299848
6 changes: 3 additions & 3 deletions src/generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ mod tests {
}
});
let mut json = ctx_with_template("", "src", dest_dir.as_path());
let chvalue = json["book"]["sections"].as_array_mut().unwrap();
let chvalue = json["book"]["items"].as_array_mut().unwrap();
chvalue.clear();
chvalue.push(ch1);
chvalue.push(ch2);
Expand Down Expand Up @@ -693,7 +693,7 @@ mod tests {
json!({
"version": mdbook_core::MDBOOK_VERSION,
"root": "tests/long_book_example",
"book": {"sections": [{
"book": {"items": [{
"Chapter": {
"name": "Chapter 1",
"content": content,
Expand All @@ -703,7 +703,7 @@ mod tests {
"parent_names": []
}}], "__non_exhaustive": null},
"config": {
"book": {"authors": [], "language": "en", "multilingual": false,
"book": {"authors": [], "language": "en", "text-direction": "ltr",
"src": source, "title": "DummyBook"},
"output": {"epub": {"curly-quotes": true}}},
"destination": destination
Expand Down
4 changes: 2 additions & 2 deletions src/resources/resource.rs
Original file line number Diff line number Diff line change
Expand Up @@ -400,9 +400,9 @@ mod tests {
let json_ctx = json!({
"version": mdbook_core::MDBOOK_VERSION,
"root": "tests/long_book_example",
"book": {"sections": chapters, "__non_exhaustive": null},
"book": {"items": chapters, "__non_exhaustive": null},
"config": {
"book": {"authors": [], "language": "en", "multilingual": false,
"book": {"authors": [], "language": "en", "text-direction": "ltr",
"src": "src", "title": "DummyBook"},
"output": {"epub": {"curly-quotes": true}}},
"destination": destination
Expand Down