Skip to content
This repository was archived by the owner on Apr 22, 2025. It is now read-only.

Commit b754f5a

Browse files
author
hainguyen
committed
Fix unit test
1 parent fbed675 commit b754f5a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

mycollab-core/src/test/java/com/mycollab/core/utils/FormatHtmlTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ public class FormatHtmlTest {
2727
@Test
2828
public void testFormatHtml() {
2929
String mixTextAndHtml = StringUtils.formatRichText("Hello world https://community.mycollab.com <b>Hai Nguyen</b>");
30-
Assert.assertEquals("Hello world <a href=\"https://community.mycollab.com\" target=\"_blank\">https://community.mycollab.com</a> <b>Hai Nguyen</b>", mixTextAndHtml);
30+
Assert.assertEquals("Hello world \n" +
31+
"<a href=\"https://community.mycollab.com\" target=\"_blank\">https://community.mycollab.com</a> \n" +
32+
"<b>Hai Nguyen</b>", mixTextAndHtml);
3133

3234
String pureHtml = StringUtils.formatRichText("https://mycollab.com");
3335
Assert.assertEquals("<a href=\"https://mycollab.com\" target=\"_blank\">https://mycollab.com</a>", pureHtml);

0 commit comments

Comments
 (0)