Skip to content

Commit

Permalink
add another test
Browse files Browse the repository at this point in the history
  • Loading branch information
syjer committed Dec 25, 2024
1 parent 59a061b commit 2a0efe2
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 0 deletions.
18 changes: 18 additions & 0 deletions data/import-2-import.mjml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<mjml>
<mj-head>
<mj-attributes>
<mj-class name="basic-column" color="green" />
</mj-attributes>
</mj-head>
<mj-body>
<mj-section>
<mj-column width="100%">
<mj-text mj-class="basic-column">
Basic column here. It's green.
</mj-text>
</mj-column>
</mj-section>
<mj-include path="include/test-partial.mjml" />
<mj-include path="include/test-partial-two.mjml" />
</mj-body>
</mjml>
16 changes: 16 additions & 0 deletions data/include/test-partial-two.mjml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<mjml>
<mj-head>
<mj-attributes>
<mj-class name="blue" color="blue" />
</mj-attributes>
</mj-head>
<mj-body>
<mj-section>
<mj-column width="100%">
<mj-text mj-class="blue">
Test include 2 is here. It's blue.
</mj-text>
</mj-column>
</mj-section>
</mj-body>
</mjml>
16 changes: 16 additions & 0 deletions data/include/test-partial.mjml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<mjml>
<mj-head>
<mj-attributes>
<mj-class name="red" color="red" />
</mj-attributes>
</mj-head>
<mj-body>
<mj-section>
<mj-column width="100%">
<mj-text mj-class="red">
Include 1 is here. It's red.
</mj-text>
</mj-column>
</mj-section>
</mj-body>
</mjml>
5 changes: 5 additions & 0 deletions src/test/java/ch/digitalfondue/mjml4j/BaseComponentTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -225,4 +225,9 @@ void testEmptySection() {
void testImportHead() {
testTemplate("import-head");
}

@Test
void test2Import() {
testTemplate("import-2-import");
}
}

0 comments on commit 2a0efe2

Please sign in to comment.