Fix tests

This commit is contained in:
Vincent Prouillet 2023-03-08 23:03:04 +01:00 committed by Vincent Prouillet
parent 8611318324
commit deaaa16017
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ fn can_parse_site() {
let posts_section = library.sections.get(&posts_path.join("_index.md")).unwrap();
assert_eq!(posts_section.subsections.len(), 2);
assert_eq!(posts_section.pages.len(), 9); // 10 with 1 draft == 9
assert_eq!(posts_section.pages.len(), 10); // 11 with 1 draft == 10
assert_eq!(posts_section.ancestors, vec![index_section.file.relative.clone()]);
// Make sure we remove all the pwd + content from the sections

View File

@ -3,4 +3,4 @@ title = "This should not be picked up"
date = 2019-07-23
+++
Don't pick me up.
Don't pick me up, I'm ignored via ignored_content in config.toml.