Skip to content

Commit

Permalink
test: frontmatter 이후 컨텐츠 테스트 케이스 수정
Browse files Browse the repository at this point in the history
- frontmatter.rs 파일의 테스트 케이스 예상 결과값 변경
- Neptune 헤더 이후 frontmatter 형식 테스트 로직 개선
- hr 태그 대신 title frontmatter 포함하도록 수정
  • Loading branch information
miridih-jslee01 committed Jan 6, 2025
1 parent b927aac commit 41c0f8f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/frontmatter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ fn frontmatter() -> Result<(), message::Message> {
);

assert_eq!(
to_html_with_options("## Neptune\n---\n---", &frontmatter)?,
"<h2>Neptune</h2>\n<hr />\n<hr />",
"should not support frontmatter after content"
to_html_with_options("## Neptune\n---\ntitle: Jupyter\n---", &frontmatter)?,
"<h2>Neptune</h2>",
"should support frontmatter after content"
);

assert_eq!(
Expand Down

0 comments on commit 41c0f8f

Please sign in to comment.