Add test for #999

This commit is contained in:
Samy Pessé
2015-11-16 10:30:10 +01:00
parent 8df6bdca89
commit 751cdd9b3b
2 changed files with 20 additions and 3 deletions
+5
View File
@@ -0,0 +1,5 @@
# Glossary
### Hello
Hello world
+15 -3
View File
@@ -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);
});
});