Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Keats committed Mar 19, 2023
1 parent 8611318 commit deaaa16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/site/tests/site.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test_site/content/posts/ignored.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit deaaa16

Please sign in to comment.