diff options
Diffstat (limited to 'tests/documents.tests.js')
| -rw-r--r-- | tests/documents.tests.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/documents.tests.js b/tests/documents.tests.js index d5db03a..06faf10 100644 --- a/tests/documents.tests.js +++ b/tests/documents.tests.js @@ -17,6 +17,16 @@ describe('DocumentConverter', function() { }); }); + test('ignores empty paragraphs', function() { + var document = new documents.Document([ + paragraphOfText("") + ]); + var converter = new DocumentConverter(); + return converter.convertToHtml(document).then(function(result) { + assert.equal(result.html, ""); + }); + }); + test('can use non-default HTML element for unstyled paragraphs', function() { var document = new documents.Document([ paragraphOfText("Hello.") |
