diff options
| author | Michael Williamson <mike@zwobble.org> | 2013-10-20 23:40:19 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2013-10-20 23:40:19 +0100 |
| commit | f1f833367bb0f52d8895fa72da06daa700f574e2 (patch) | |
| tree | bf8e9613172c0644f6a754261c3c98e4ef6254f6 /tests | |
| parent | 242e863ad222342627a69d03ee68e5bd60ed4920 (diff) | |
Convert document tabs into literal tab characters
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/document-to-html.tests.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/document-to-html.tests.js b/tests/document-to-html.tests.js index fd6ef1a..51e1a73 100644 --- a/tests/document-to-html.tests.js +++ b/tests/document-to-html.tests.js @@ -184,6 +184,14 @@ describe('DocumentConverter', function() { }); }); + test('docx tab is converted to tab in HTML', function() { + var tab = new documents.Tab(); + var converter = new DocumentConverter(); + return converter.convertToHtml(tab).then(function(result) { + assert.equal(result.value, "\t"); + }); + }); + test('images are written with data URIs', function() { var imageBuffer = new Buffer("Not an image at all!"); var image = new documents.Image({ |
