Fix tests
This commit is contained in:
parent
8611318324
commit
deaaa16017
@ -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
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user