diff options
Diffstat (limited to 'test/structure.js')
-rw-r--r-- | test/structure.js | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/test/structure.js b/test/structure.js index b25a021..90413cb 100644 --- a/test/structure.js +++ b/test/structure.js @@ -1,8 +1,20 @@ describe('Structure', function () { - it('should prioritize structure defined in book.json', function() { + var book; + + before(function() { return books.parse('structure') - .then(function(book) { - book.readmeFile.should.equal('README.adoc'); + .then(function(_book) { + book = _book; }); }); + + + it('should prioritize structure defined in book.json', function() { + book.readmeFile.should.equal('README.adoc'); + }); + + it('should be case incensitive', function() { + book.glossaryFile.should.equal('glossary.md'); + book.glossary.should.have.lengthOf(1); + }); }); |