diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-02-25 18:16:20 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-02-25 18:16:20 +0000 |
| commit | 385aa8233c6c37834d0ad43597235356ac87ced7 (patch) | |
| tree | 411b7b30024d0fe5e41131659d9f45cbb27e4ff0 /src/test/java/org | |
| parent | 16297f76556e329e589c94ce1161439409201766 (diff) | |
Update strikethrough document matcher to match other implementations
Diffstat (limited to 'src/test/java/org')
| -rw-r--r-- | src/test/java/org/zwobble/mammoth/tests/MammothTests.java | 2 | ||||
| -rw-r--r-- | src/test/java/org/zwobble/mammoth/tests/styles/StyleMapParserTests.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/java/org/zwobble/mammoth/tests/MammothTests.java b/src/test/java/org/zwobble/mammoth/tests/MammothTests.java index 3319ebb..0ea0e90 100644 --- a/src/test/java/org/zwobble/mammoth/tests/MammothTests.java +++ b/src/test/java/org/zwobble/mammoth/tests/MammothTests.java @@ -186,7 +186,7 @@ public class MammothTests { @Test public void rulesFromPreviouslyAddedStyleMapsStillTakeEffectIfNotOverriden() throws IOException { assertThat( - convertToHtml("underline.docx", mammoth -> mammoth.addStyleMap("u => em").addStyleMap("s => del")), + convertToHtml("underline.docx", mammoth -> mammoth.addStyleMap("u => em").addStyleMap("strike => del")), deepEquals(success("<p><strong>The <em>Sunset</em> Tree</strong></p>"))); } diff --git a/src/test/java/org/zwobble/mammoth/tests/styles/StyleMapParserTests.java b/src/test/java/org/zwobble/mammoth/tests/styles/StyleMapParserTests.java index 3638e85..1532991 100644 --- a/src/test/java/org/zwobble/mammoth/tests/styles/StyleMapParserTests.java +++ b/src/test/java/org/zwobble/mammoth/tests/styles/StyleMapParserTests.java @@ -37,7 +37,7 @@ public class StyleMapParserTests { @Test public void canMapStrikethrough() { - StyleMap styleMap = StyleMapParser.parse("s => del"); + StyleMap styleMap = StyleMapParser.parse("strike => del"); assertThat(styleMap, deepEquals(StyleMap.builder().strikethrough(HtmlPath.collapsibleElement("del")).build())); } |
