From d83e0716bb2969eb6096290f6b543753801b3d11 Mon Sep 17 00:00:00 2001 From: Samy Pesse Date: Fri, 8 Apr 2016 23:58:42 +0200 Subject: [PATCH] Add test for main language in json output --- test/output-json.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/output-json.js b/test/output-json.js index cb2911935..70a10f866 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); });