Files
gitbook/test/6-parse.js
T
2016-01-28 17:35:32 +01:00

23 lines
520 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;
});
});
});