diff options
| author | Michael Williamson <mike@zwobble.org> | 2013-03-31 12:54:22 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2013-03-31 12:54:22 +0100 |
| commit | 92d7cc4c856b160bf8db05d9e1edc2ad22261954 (patch) | |
| tree | d4c66545e68f8dca00d4c1f5949f311136eb4eea /tests/documents.tests.js | |
| parent | 24b17947c668bc1f3392aa332804d9b57f76618a (diff) | |
Ignore empty paragraphs
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.") |
