diff options
author | Samy Pesse <samypesse@gmail.com> | 2016-02-12 21:25:43 +0100 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2016-02-12 21:25:43 +0100 |
commit | 0d966fe19738089607de3927694ac5f2bd41f03f (patch) | |
tree | 92d4d3711459249e48dfc708870afff42367a3fc /test | |
parent | 82f94b010f1d77957c9d1b0967dcdd5eafe73c39 (diff) | |
download | gitbook-0d966fe19738089607de3927694ac5f2bd41f03f.zip gitbook-0d966fe19738089607de3927694ac5f2bd41f03f.tar.gz gitbook-0d966fe19738089607de3927694ac5f2bd41f03f.tar.bz2 |
Separate output in FolderOutput and base
Diffstat (limited to 'test')
-rw-r--r-- | test/page.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test/page.js b/test/page.js index 90a0260..01c6466 100644 --- a/test/page.js +++ b/test/page.js @@ -1,7 +1,8 @@ var mock = require('./mock'); +var Output = require('../lib/output/base'); describe('Page', function() { - var book; + var book, output; before(function() { return mock.setupDefaultBook({ @@ -10,6 +11,8 @@ describe('Page', function() { }) .then(function(_book) { book = _book; + output = new Output(book); + return book.parse(); }); }); @@ -18,7 +21,7 @@ describe('Page', function() { it('should add a default ID to headings', function() { var page = book.addPage('heading.md'); - return page.parse() + return page.parse(output) .then(function() { page.content.should.be.html({ 'h1#hello': { @@ -37,7 +40,7 @@ describe('Page', function() { before(function() { page = book.addPage('links.md'); - return page.parse(); + return page.parse(output); }); it('should replace links to page to .html', function() { |