summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron O'Mullan <aaron.omullan@friendco.de>2014-04-12 01:34:36 -0700
committerAaron O'Mullan <aaron.omullan@friendco.de>2014-04-12 01:34:36 -0700
commitca25511d7a7ca436bf20d12bd847328faae987d6 (patch)
treeae6502e63f32ac6171804cafb8e2932ba8c51a26
parentb07681a16a291a38fdbdfa3065a747ab26f9a6c9 (diff)
downloadgitbook-ca25511d7a7ca436bf20d12bd847328faae987d6.zip
gitbook-ca25511d7a7ca436bf20d12bd847328faae987d6.tar.gz
gitbook-ca25511d7a7ca436bf20d12bd847328faae987d6.tar.bz2
Fixup page lexing in test/page
-rw-r--r--test/page.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/page.js b/test/page.js
index 7abe0af..a8a3770 100644
--- a/test/page.js
+++ b/test/page.js
@@ -9,7 +9,10 @@ function loadPage (name, options) {
return page(CONTENT, options);
}
-var LEXED = loadPage('PAGE');
+var LEXED = loadPage('PAGE', {
+ dir: 'course',
+ outdir: '_book'
+});
var QUIZ_LEXED = loadPage('QUIZ_PAGE');
var HR_LEXED = loadPage('HR_PAGE');
@@ -34,7 +37,7 @@ describe('Page parsing', function() {
it('should make image URLs relative', function() {
assert(LEXED[2].content.indexOf('_book/assets/my-pretty-picture.png') !== -1);
- })
+ });
it('should gen code and content for exercise sections', function() {
assert(LEXED[1].content);