mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-12 05:48:57 +00:00
Adjust summary test for new SUMMARY.md fixture
This commit is contained in:
+5
-1
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user