Skip to content

Commit f3c7e03

Browse files
committed
Remove trailing space from expected result
1 parent eb0dfec commit f3c7e03

1 file changed

Lines changed: 5 additions & 11 deletions

File tree

src/test/java/com/hubspot/jinjava/lib/filter/TruncateHtmlFilterTest.java

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ public void itPreservesEndTagsWhenTruncatingWithinTagContent() {
2626
"33"
2727
);
2828
assertThat(result)
29-
.isEqualTo(
30-
"<h1>HTML Ipsum Presents</h1> \n<p><strong>Pellentesque...</strong></p>"
31-
);
29+
.isEqualTo("<h1>HTML Ipsum Presents</h1>\n<p><strong>Pellentesque...</strong></p>");
3230
}
3331

3432
@Test
@@ -39,9 +37,7 @@ public void itDoesntChopWordsWhenSpecified() {
3937
"35"
4038
);
4139
assertThat(result)
42-
.isEqualTo(
43-
"<h1>HTML Ipsum Presents</h1> \n<p><strong>Pellentesque...</strong></p>"
44-
);
40+
.isEqualTo("<h1>HTML Ipsum Presents</h1>\n<p><strong>Pellentesque...</strong></p>");
4541

4642
result =
4743
(String) filter.filter(
@@ -53,7 +49,7 @@ public void itDoesntChopWordsWhenSpecified() {
5349
);
5450
assertThat(result)
5551
.isEqualTo(
56-
"<h1>HTML Ipsum Presents</h1> \n<p><strong>Pellentesque ha...</strong></p>"
52+
"<h1>HTML Ipsum Presents</h1>\n<p><strong>Pellentesque ha...</strong></p>"
5753
);
5854
}
5955

@@ -66,9 +62,7 @@ public void itTakesKwargs() {
6662
ImmutableMap.of("breakwords", false)
6763
);
6864
assertThat(result)
69-
.isEqualTo(
70-
"<h1>HTML Ipsum Presents</h1> \n<p><strong>Pellentesque...</strong></p>"
71-
);
65+
.isEqualTo("<h1>HTML Ipsum Presents</h1>\n<p><strong>Pellentesque...</strong></p>");
7266

7367
result =
7468
(String) filter.filter(
@@ -79,7 +73,7 @@ public void itTakesKwargs() {
7973
);
8074
assertThat(result)
8175
.isEqualTo(
82-
"<h1>HTML Ipsum Presents</h1> \n<p><strong>PellentesqueTEST</strong></p>"
76+
"<h1>HTML Ipsum Presents</h1>\n<p><strong>PellentesqueTEST</strong></p>"
8377
);
8478
}
8579

0 commit comments

Comments
 (0)