diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-11-03 17:40:38 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-11-03 17:40:38 +0100 |
commit | dfd487692a948b9d16f1fbd75b6c4dd65d44c1cb (patch) | |
tree | 5f295d74c8b96b5fd9f595c8f22c143bcee62540 /test/page.js | |
parent | 195374eceeb5812df3c14ee5fdb88ed7f3310a2b (diff) | |
download | gitbook-dfd487692a948b9d16f1fbd75b6c4dd65d44c1cb.zip gitbook-dfd487692a948b9d16f1fbd75b6c4dd65d44c1cb.tar.gz gitbook-dfd487692a948b9d16f1fbd75b6c4dd65d44c1cb.tar.bz2 |
Adapt new page.parse api for tests
Diffstat (limited to 'test/page.js')
-rw-r--r-- | test/page.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/page.js b/test/page.js index cd843c6..0633117 100644 --- a/test/page.js +++ b/test/page.js @@ -6,7 +6,7 @@ var page = require('../').parse.page; function loadPage (name, options) { var CONTENT = fs.readFileSync(path.join(__dirname, './fixtures/' + name + '.md'), 'utf8'); - return page(CONTENT, options); + return page(CONTENT, options).sections; } var LEXED = loadPage('PAGE', { |