From bb96433fe34eddeb0d0d70bcf52109cdfac81255 Mon Sep 17 00:00:00 2001 From: Aaron O'Mullan Date: Tue, 1 Apr 2014 00:45:25 -0700 Subject: [PATCH] Adjust summary test for new SUMMARY.md fixture --- test/summary.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/summary.js b/test/summary.js index 921785ea6..51169d585 100644 --- a/test/summary.js +++ b/test/summary.js @@ -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() {