diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-01-19 15:26:31 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-01-19 15:26:31 +0100 |
commit | 793600ab2fe3923062b06dd25e59655805882409 (patch) | |
tree | c385fbadece8b41b69dbd995a94744a1370f01e2 /test/summary.js | |
parent | 354b4afba1ddd1f86fb587da0c74388df89dbc28 (diff) | |
download | gitbook-793600ab2fe3923062b06dd25e59655805882409.zip gitbook-793600ab2fe3923062b06dd25e59655805882409.tar.gz gitbook-793600ab2fe3923062b06dd25e59655805882409.tar.bz2 |
Improve test to test a all book
Diffstat (limited to 'test/summary.js')
-rw-r--r-- | test/summary.js | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/test/summary.js b/test/summary.js deleted file mode 100644 index a90212f..0000000 --- a/test/summary.js +++ /dev/null @@ -1,22 +0,0 @@ -var path = require('path'); -var assert = require('assert'); - -var Book = require('../').Book; - -describe('Summary parsing', function () { - it('should correctly parse it from markdown', function(done) { - var book = new Book(path.join(__dirname, './fixtures/summary/markdown')); - book.parseSummary() - .then(function() { - var LEXED = book.summary; - - assert.equal(LEXED.chapters[0].path,'README.md'); - assert.equal(LEXED.chapters[1].path,'chapter-1/README.md'); - assert.equal(LEXED.chapters[2].path,'chapter-2/README.md'); - assert.equal(LEXED.chapters[3].path,'chapter-3/README.md'); - }) - .then(function() { - done() - }, done); - }); -}); |