diff options
Diffstat (limited to 'test/page.js')
-rw-r--r-- | test/page.js | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/page.js b/test/page.js new file mode 100644 index 0000000..66c06e1 --- /dev/null +++ b/test/page.js @@ -0,0 +1,26 @@ +var mock = require('./mock'); + +describe('Page', function() { + var book; + + before(function() { + return mock.setupDefaultBook({ + 'heading.md': '# Hello\n\n## World' + }) + .then(function(_book) { + book = _book; + return book.summary.load(); + }); + }); + + it.only('should add a default ID to headings', function() { + var page = book.addPage('heading.md'); + + return page.parse() + .then(function() { + console.log(page.content); + }); + + }); + +});
\ No newline at end of file |