Adjust summary test for new SUMMARY.md fixture

This commit is contained in:
Aaron O'Mullan
2014-04-01 00:45:25 -07:00
parent 6a63708939
commit bb96433fe3
+5 -1
View File
@@ -13,7 +13,7 @@ describe('Summary parsing', function () {
console.log(LEXED);
it('should detect chapters', function() {
assert.equal(LEXED.chapters.length, 3);
assert.equal(LEXED.chapters.length, 5);
});
it('should support articles', function() {
@@ -26,10 +26,14 @@ describe('Summary parsing', function () {
assert(LEXED.chapters[0].path);
assert(LEXED.chapters[1].path);
assert(LEXED.chapters[2].path);
assert(LEXED.chapters[3].path);
assert.equal(LEXED.chapters[4].path, null);
assert(LEXED.chapters[0].title);
assert(LEXED.chapters[1].title);
assert(LEXED.chapters[2].title);
assert(LEXED.chapters[3].title);
assert(LEXED.chapters[4].title);
});
it('should normalize paths from .md to .html', function() {