diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/output-json.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/output-json.js b/test/output-json.js index 1006dab..cb29119 100644 --- a/test/output-json.js +++ b/test/output-json.js @@ -41,8 +41,23 @@ describe('JSON Output', function() { output.should.have.file('fr/README.json'); }); + it('should correctly add languages list to all json', function() { + var jsonFR = require(output.resolve('fr/README.json')); + var jsonEN = require(output.resolve('en/README.json')); + + jsonFR.should.have.property('languages') + .with.property('list').with.lengthOf(2); + jsonEN.should.have.property('languages') + .with.property('list').with.lengthOf(2); + }); + 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.should.have.property('languages') + .with.property('list').with.lengthOf(2); }); }); }); |