diff options
| author | Michael Williamson <mike@zwobble.org> | 2014-07-05 19:28:03 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2014-07-05 19:28:03 +0100 |
| commit | 936b74f2d0415dd73fa6471eea4daf6b32b07051 (patch) | |
| tree | 01b998c2333c04d7fc86c510ed1d0416b771463b | |
| parent | eda2c2db9e9e2775f1d62397ff98bd51f327f428 (diff) | |
Update expected output for tables
| -rw-r--r-- | tests/mammoth.tests.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/mammoth.tests.js b/tests/mammoth.tests.js index bcdeea3..35a19ff 100644 --- a/tests/mammoth.tests.js +++ b/tests/mammoth.tests.js @@ -93,7 +93,13 @@ describe('mammoth', function() { return; var docxPath = path.join(__dirname, "test-data/tables.docx"); return mammoth.convertToHtml({path: docxPath}).then(function(result) { - assert.equal(result.value, "<p>Above</p><table><tr><td>Top left</td><td>Top right</td></tr><tr><td>Bottom left</td><td>Bottom right</td></tr></table><p>Below</p>"); + var expectedHtml = "<p>Above</p>" + + "<table>" + + "<tr><td><p>Top left</p></td><td><p>Top right</p></td></tr>" + + "<tr><td><p>Bottom left</p></td><td><p>Bottom right</p></td></tr>" + + "</table>" + + "<p>Below</p>"; + assert.equal(result.value, expectedHtml); assert.deepEqual(result.messages, []); }); }); |
