summaryrefslogtreecommitdiffstats
path: root/test/parse.js
blob: dca780e035c1c9ff371c949385648d9f06236214 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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;
        });
    });

});