summaryrefslogtreecommitdiffstats
path: root/test/summary.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2014-04-04 10:47:44 -0700
committerSamy Pessé <samypesse@gmail.com>2014-04-04 10:47:44 -0700
commit5125e04814e0f6bbd5533b5755d9a483f3a4ab73 (patch)
tree16224ab6be06eb70523634e1d310922621e76c9d /test/summary.js
parent0a6194340f56a3b640ee438972762fc72178c6ff (diff)
downloadgitbook-5125e04814e0f6bbd5533b5755d9a483f3a4ab73.zip
gitbook-5125e04814e0f6bbd5533b5755d9a483f3a4ab73.tar.gz
gitbook-5125e04814e0f6bbd5533b5755d9a483f3a4ab73.tar.bz2
Update tests
Diffstat (limited to 'test/summary.js')
-rw-r--r--test/summary.js9
1 files changed, 3 insertions, 6 deletions
diff --git a/test/summary.js b/test/summary.js
index 51169d5..d1ef3dd 100644
--- a/test/summary.js
+++ b/test/summary.js
@@ -37,12 +37,9 @@ describe('Summary parsing', function () {
});
it('should normalize paths from .md to .html', function() {
- assert.equal(LEXED.chapters[0].path,'chapter-1/README.html');
- assert.equal(LEXED.chapters[0]._path,'chapter-1/README.md');
- assert.equal(LEXED.chapters[1].path,'chapter-2/README.html');
- assert.equal(LEXED.chapters[1]._path,'chapter-2/README.md');
- assert.equal(LEXED.chapters[2].path,'chapter-3/README.html');
- assert.equal(LEXED.chapters[2]._path,'chapter-3/README.md');
+ assert.equal(LEXED.chapters[0].path,'chapter-1/README.md');
+ assert.equal(LEXED.chapters[1].path,'chapter-2/README.md');
+ assert.equal(LEXED.chapters[2].path,'chapter-3/README.md');
});
it('should detect levels correctly', function() {