mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-10-05 12:54:22 +00:00
Add tests for null paths in navigation
Unfinished chapters/articles should be put in navigation
This commit is contained in:
@@ -65,4 +65,10 @@ describe('Summary navigation', function() {
|
||||
assert.equal(nav['chapter-2/README.html'].level, '2');
|
||||
assert.equal(nav['chapter-3/README.html'].level, '3');
|
||||
});
|
||||
|
||||
it('should not accept null paths', function() {
|
||||
var nav = navigation(LEXED);
|
||||
|
||||
assert(!nav[null]);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user