diff options
Diffstat (limited to 'test/parsing.js')
-rw-r--r-- | test/parsing.js | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/test/parsing.js b/test/parsing.js index 3d41939..4aec3be 100644 --- a/test/parsing.js +++ b/test/parsing.js @@ -4,11 +4,16 @@ var assert = require('assert'); var Book = require('../').Book; describe('Book parsing', function () { - it('should correctly parse it from markdown', function() { + it('should correctly parse the readme', function() { + assert.equal(book1.options.title, 'My Book'); + assert.equal(book1.options.description, 'Test description'); + }); + + it('should correctly parse the summary', function() { var LEXED = book1.summary; - assert.equal(LEXED.chapters[0].path,'intro.md'); - assert.equal(LEXED.chapters[1].path,'test.md'); - assert.equal(LEXED.chapters[2].path,'test2.md'); + assert.equal(LEXED.chapters[0].path, 'intro.md'); + assert.equal(LEXED.chapters[1].path, 'test.md'); + assert.equal(LEXED.chapters[2].path, 'test2.md'); }); }); |