Add test for main language in json output

This commit is contained in:
Samy Pesse
2016-04-08 23:58:42 +02:00
parent aed38afff3
commit d83e0716bb
+2 -1
View File
@@ -53,9 +53,10 @@ describe('JSON Output', function() {
it('should correctly generate a README.json for the whole book', function() {
output.should.have.file('README.json');
var json = require(output.resolve('README.json'));
json.book.language.should.equal('en');
json.should.have.property('languages')
.with.property('list').with.lengthOf(2);
});