summaryrefslogtreecommitdiffstats
path: root/test/navigation.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/navigation.js')
-rw-r--r--test/navigation.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/navigation.js b/test/navigation.js
index 8f82911..4ed2c04 100644
--- a/test/navigation.js
+++ b/test/navigation.js
@@ -16,7 +16,8 @@ describe('Summary navigation', function() {
'README.html',
'chapter-1/README.html',
'chapter-1/ARTICLE1.html',
- 'chapter-1/ARTICLE2.html'
+ 'chapter-1/ARTICLE2.html',
+ 'chapter-2/README.html',
]);
// Make sure it found the files we gave it
@@ -24,6 +25,8 @@ describe('Summary navigation', function() {
assert(nav['chapter-1/README.html']);
assert(nav['chapter-1/ARTICLE1.html']);
assert(nav['chapter-1/ARTICLE2.html']);
+ assert(nav['chapter-2/README.html']);
+
assert.equal(nav['README.html'].prev, null);
assert.equal(nav['README.html'].next.path, 'chapter-1/README.html');
@@ -36,6 +39,9 @@ describe('Summary navigation', function() {
assert.equal(nav['chapter-1/ARTICLE2.html'].prev.path, 'chapter-1/ARTICLE1.html');
assert.equal(nav['chapter-1/ARTICLE2.html'].next.path, 'chapter-2/README.html');
+
+ assert.equal(nav['chapter-2/README.html'].prev.path, 'chapter-1/ARTICLE2.html');
+ assert.equal(nav['chapter-2/README.html'].next.path, 'chapter-3/README.html');
});
it('should give full tree, when not limited', function() {