summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/fixtures/SUMMARY.md3
-rw-r--r--test/navigation.js6
2 files changed, 9 insertions, 0 deletions
diff --git a/test/fixtures/SUMMARY.md b/test/fixtures/SUMMARY.md
index 9f55e4c..74bbd1b 100644
--- a/test/fixtures/SUMMARY.md
+++ b/test/fixtures/SUMMARY.md
@@ -5,3 +5,6 @@
* [Article 2](chapter-1/ARTICLE2.md)
* [Chapter 2](chapter-2/README.md)
* [Chapter 3](chapter-3/README.md)
+* [Chapter 4](chapter-4/README.md)
+ * Unfinished article
+* Unfinished Chapter
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]);
+ });
});