diff options
author | Samy Pesse <samypesse@gmail.com> | 2016-04-08 23:58:42 +0200 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2016-04-08 23:58:42 +0200 |
commit | d83e0716bb2969eb6096290f6b543753801b3d11 (patch) | |
tree | 3def86a328717c83ef3c0da42f83a6aac4b90763 /test/output-json.js | |
parent | aed38afff34f36d44b76c85482511ca3d7a0a55e (diff) | |
download | gitbook-d83e0716bb2969eb6096290f6b543753801b3d11.zip gitbook-d83e0716bb2969eb6096290f6b543753801b3d11.tar.gz gitbook-d83e0716bb2969eb6096290f6b543753801b3d11.tar.bz2 |
Add test for main language in json output
Diffstat (limited to 'test/output-json.js')
-rw-r--r-- | test/output-json.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/output-json.js b/test/output-json.js index cb29119..70a10f8 100644 --- a/test/output-json.js +++ b/test/output-json.js @@ -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); }); |