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