summaryrefslogtreecommitdiffstats
path: root/test/summary.js
diff options
context:
space:
mode:
authorAaron O'Mullan <aaron.omullan@friendco.de>2014-04-01 00:45:25 -0700
committerAaron O'Mullan <aaron.omullan@friendco.de>2014-04-01 00:45:51 -0700
commitbb96433fe34eddeb0d0d70bcf52109cdfac81255 (patch)
treed692f59849feb597815c725390ca80c47f78446c /test/summary.js
parent6a63708939c62c74dd3e8a032fbf0accaa2b03a5 (diff)
downloadgitbook-bb96433fe34eddeb0d0d70bcf52109cdfac81255.zip
gitbook-bb96433fe34eddeb0d0d70bcf52109cdfac81255.tar.gz
gitbook-bb96433fe34eddeb0d0d70bcf52109cdfac81255.tar.bz2
Adjust summary test for new SUMMARY.md fixture
Diffstat (limited to 'test/summary.js')
-rw-r--r--test/summary.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/summary.js b/test/summary.js
index 921785e..51169d5 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() {