diff options
Diffstat (limited to 'test/parse.js')
-rw-r--r-- | test/parse.js | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/parse.js b/test/parse.js new file mode 100644 index 0000000..dca780e --- /dev/null +++ b/test/parse.js @@ -0,0 +1,24 @@ +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; + }); + }); + +}); + |