diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-07-07 20:44:20 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-07-07 20:44:20 +0100 |
| commit | baf9808eae3441de70a00cd043e10e0ebf06b7c0 (patch) | |
| tree | 869bcc8376caf7b730f501472d507e816733e565 /test/mammoth.tests.js | |
| parent | b5768bced10c6dafe8bc621c6ef01aa0bd9d975c (diff) | |
Add HTML path for ignoring elements
Diffstat (limited to 'test/mammoth.tests.js')
| -rw-r--r-- | test/mammoth.tests.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/mammoth.tests.js b/test/mammoth.tests.js index 1a82014..12bee96 100644 --- a/test/mammoth.tests.js +++ b/test/mammoth.tests.js @@ -114,12 +114,12 @@ describe('mammoth', function() { test('warning if style mapping is not understood', function() { var docxPath = path.join(__dirname, "test-data/single-paragraph.docx"); var options = { - styleMap: "!!!!\np => h1" + styleMap: "????\np => h1" }; return mammoth.convertToHtml({path: docxPath}, options).then(function(result) { assert.equal("<h1>Walking on imported air</h1>", result.value); - var warning = "Did not understand this style mapping, so ignored it: !!!!\n" + - 'Error was at character number 1: Expected element type but got unrecognisedCharacter "!"'; + var warning = "Did not understand this style mapping, so ignored it: ????\n" + + 'Error was at character number 1: Expected element type but got unrecognisedCharacter "?"'; assert.deepEqual(result.messages, [results.warning(warning)]); }); }); |
