diff options
| author | Michael Williamson <mike@zwobble.org> | 2013-03-29 20:49:27 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2013-03-29 20:49:27 +0000 |
| commit | 33c8de2a7b6162e6e0dac8c4d5888317776c7ecf (patch) | |
| tree | 24b4c7cd560ecdabbe55bdd3a6939ac6796fc752 /tests/documents.tests.js | |
| parent | 1413e67cdde7dc349c098c670d8590cc8e04b004 (diff) | |
Create separate styles module for generating styles
Diffstat (limited to 'tests/documents.tests.js')
| -rw-r--r-- | tests/documents.tests.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/documents.tests.js b/tests/documents.tests.js index 7161377..b9fe15a 100644 --- a/tests/documents.tests.js +++ b/tests/documents.tests.js @@ -3,6 +3,7 @@ var assert = require("assert"); var documents = require("../lib/documents"); var DocumentConverter = documents.DocumentConverter; var test = require("./testing").test; +var styles = require("../lib/styles"); describe('DocumentConverter', function() { @@ -43,7 +44,7 @@ describe('DocumentConverter', function() { ]); var converter = new DocumentConverter({ paragraphStyleMap: { - "Heading1": "h1" + "Heading1": styles.topLevelElement("h1") } }); return converter.convertToHtml(document).then(function(result) { |
