summaryrefslogtreecommitdiffstats
path: root/test/navigation.js
diff options
context:
space:
mode:
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]);
+ });
});