diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/document-to-html.tests.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/document-to-html.tests.js b/test/document-to-html.tests.js index baa7df9..a55f9a2 100644 --- a/test/document-to-html.tests.js +++ b/test/document-to-html.tests.js @@ -415,6 +415,18 @@ test('tbody is omitted if all rows are headers', function() { }); }); +test('unexpected table children do not cause error', function() { + var table = new documents.Table([ + new documents.tab() + ]); + var converter = new DocumentConverter(); + + return converter.convertToHtml(table).then(function(result) { + var expectedHtml = "<table>\t</table>"; + assert.equal(result.value, expectedHtml); + }); +}); + test('empty cells are preserved in table', function() { var table = new documents.Table([ new documents.TableRow([ |
