mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-23 11:03:39 +00:00
Add test for #999
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
# Glossary
|
||||
|
||||
### Hello
|
||||
|
||||
Hello world
|
||||
+15
-3
@@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user