mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-18 16:45:11 +00:00
25 lines
522 B
JavaScript
25 lines
522 B
JavaScript
var mock = require('./mock');
|
|
|
|
describe('Parsing', function() {
|
|
|
|
it('should fail without SUMMARY', function() {
|
|
return mock.setupBook({
|
|
'README.md': ''
|
|
})
|
|
.then(function(book) {
|
|
return book.parse().should.be.rejected;
|
|
});
|
|
});
|
|
|
|
it('should fail without README', function() {
|
|
return mock.setupBook({
|
|
'SUMMARY.md': ''
|
|
})
|
|
.then(function(book) {
|
|
return book.parse().should.be.rejected;
|
|
});
|
|
});
|
|
|
|
});
|
|
|