summaryrefslogtreecommitdiffstats
path: root/test/navigation.js
diff options
context:
space:
mode:
authorAaron O'Mullan <aaron.omullan@friendco.de>2014-04-01 00:42:14 -0700
committerAaron O'Mullan <aaron.omullan@friendco.de>2014-04-01 00:45:51 -0700
commit6a63708939c62c74dd3e8a032fbf0accaa2b03a5 (patch)
tree0bd21d8422e695b573625eb5c2e851eb8f4d6e93 /test/navigation.js
parente08b09f3cfd3096a5b37509bb291926e05a885cf (diff)
downloadgitbook-6a63708939c62c74dd3e8a032fbf0accaa2b03a5.zip
gitbook-6a63708939c62c74dd3e8a032fbf0accaa2b03a5.tar.gz
gitbook-6a63708939c62c74dd3e8a032fbf0accaa2b03a5.tar.bz2
Add tests for null paths in navigation
Unfinished chapters/articles should be put in navigation
Diffstat (limited to 'test/navigation.js')
-rw-r--r--test/navigation.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/navigation.js b/test/navigation.js
index 9b17f7f..23d98ac 100644
--- a/test/navigation.js
+++ b/test/navigation.js
@@ -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]);
+ });
});