diff options
Diffstat (limited to 'test/parsing.js')
-rw-r--r-- | test/parsing.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/parsing.js b/test/parsing.js index 5f40594..0166e85 100644 --- a/test/parsing.js +++ b/test/parsing.js @@ -17,8 +17,20 @@ describe('Book parsing', function () { var LEXED = books[1].summary; assert.equal(LEXED.chapters[0].path, 'intro.md'); + assert.equal(LEXED.chapters[0].exists, true); + assert.equal(LEXED.chapters[0].external, false); + assert.equal(LEXED.chapters[1].path, 'test.md'); + assert.equal(LEXED.chapters[1].exists, false); + assert.equal(LEXED.chapters[1].external, false); + assert.equal(LEXED.chapters[2].path, 'test2.md'); + assert.equal(LEXED.chapters[2].exists, false); + assert.equal(LEXED.chapters[2].external, false); + + assert.equal(LEXED.chapters[3].path, 'https://www.google.com'); + assert.equal(LEXED.chapters[3].exists, true); + assert.equal(LEXED.chapters[3].external, true); }); it('should correctly parse the glossary', function() { |