Skip to content

Commit

Permalink
add hr rule
Browse files Browse the repository at this point in the history
  • Loading branch information
Thorsten Marx committed Mar 7, 2024
1 parent 2d1495f commit 931c056
Showing 1 changed file with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,31 @@ void test_horizontal_rule_with_before() {
Assertions.assertThat(next.render((content) -> content)).isEqualTo("<hr />");
}

@Test
void test_horizontal_rule() {

String input = """
---
""";

String expected = """
<hr />
""";

Block next = sut.next(input);

Assertions.assertThat(next)
.isNotNull()
.isInstanceOf(HorizontalRuleBlockRule.HRBlock.class);

Assertions.assertThat(next.render((content) -> content)).isEqualTo("<hr />");

Assertions.assertThat(next.render(value -> value)).isEqualToIgnoringWhitespace(expected);
}


@Test
void test_horizontal_rule_issue() {

Expand Down

0 comments on commit 931c056

Please sign in to comment.