Files
gitbook/test/parse.js
T
2016-01-22 21:04:36 +01:00

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;
});
});
});