summaryrefslogtreecommitdiffstats
path: root/test/page.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2014-11-03 17:40:38 +0100
committerSamy Pessé <samypesse@gmail.com>2014-11-03 17:40:38 +0100
commitdfd487692a948b9d16f1fbd75b6c4dd65d44c1cb (patch)
tree5f295d74c8b96b5fd9f595c8f22c143bcee62540 /test/page.js
parent195374eceeb5812df3c14ee5fdb88ed7f3310a2b (diff)
downloadgitbook-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.js2
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', {