Skip to content

Commit

Permalink
fix storyblockmaptest
Browse files Browse the repository at this point in the history
  • Loading branch information
erickgonzalez committed Nov 20, 2023
1 parent 644f458 commit 59470ab
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ public void test_default_paragraph_render_to_html() throws JSONException {

final StoryBlockMap storyBlockMap = new StoryBlockMap(JSON_PARAGRAPH);
final String html = storyBlockMap.toHtml();
Assert.assertTrue(html.contains("<p style=\"text-align: left\">"));
Assert.assertTrue(html.contains("<p style=\"text-align: left;\">"));
Assert.assertTrue(html + ": does not contains this is paragraph", html.contains("this is paragraph"));
Assert.assertTrue(html.contains("</p>"));
}
Expand Down Expand Up @@ -248,11 +248,11 @@ public void test_default_render_to_html() throws JSONException {

final StoryBlockMap storyBlockMap = new StoryBlockMap(JSON);
final String html = storyBlockMap.toHtml();
Assert.assertTrue(html.contains("<h2 style=\"text-align: \" >test2</h2>"));
Assert.assertTrue(html.contains("<h2 style=\"text-align: \" >test1</h2>"));
Assert.assertTrue(html.contains("<h2>test2</h2>"));
Assert.assertTrue(html.contains("<h2>test1</h2>"));
Assert.assertTrue(html + ": does not contains <strong>", html.contains("<strong>"));
Assert.assertTrue(html.contains("heading 1"));
Assert.assertTrue(html.contains("<h2 style=\"text-align: left\">"));
Assert.assertTrue(html.contains("<h2 style=\"text-align: left;\">"));
Assert.assertTrue(html.contains("heading 2"));
Assert.assertTrue(html.contains("</h2>"));

Expand Down

0 comments on commit 59470ab

Please sign in to comment.