Fixup page lexing in test/page

This commit is contained in:
Aaron O'Mullan
2014-04-12 01:34:36 -07:00
parent b07681a16a
commit ca25511d7a
+5 -2
View File
@@ -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);