mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-12 05:48:57 +00:00
21 lines
505 B
JavaScript
21 lines
505 B
JavaScript
describe('Structure', function () {
|
|
var book;
|
|
|
|
before(function() {
|
|
return books.parse('structure')
|
|
.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);
|
|
});
|
|
});
|