diff options
Diffstat (limited to 'src/test/java/org')
| -rw-r--r-- | src/test/java/org/zwobble/mammoth/tests/MammothTests.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/java/org/zwobble/mammoth/tests/MammothTests.java b/src/test/java/org/zwobble/mammoth/tests/MammothTests.java index bafd857..d7a2b66 100644 --- a/src/test/java/org/zwobble/mammoth/tests/MammothTests.java +++ b/src/test/java/org/zwobble/mammoth/tests/MammothTests.java @@ -252,6 +252,14 @@ public class MammothTests { } @Test + public void embeddedStyleMapsCanBeDisabled() throws IOException { + assertThat( + convertToHtml("embedded-style-map.docx", options -> options.disableEmbeddedStyleMap()), + isSuccess("<p>Walking on imported air</p>") + ); + } + + @Test public void embeddedStyleMapCanBeWrittenAndThenRead() throws IOException { InMemoryArchive archive = InMemoryArchive.fromStream(new FileInputStream(TestData.file("single-paragraph.docx"))); EmbeddedStyleMap.embedStyleMap(archive, "p => h1"); |
