diff options
Diffstat (limited to 'test/json.js')
-rw-r--r-- | test/json.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/json.js b/test/json.js index 3ee2066..e86ee4e 100644 --- a/test/json.js +++ b/test/json.js @@ -38,6 +38,12 @@ describe('JSON generator', function () { page.sections[0].should.have.property("type").which.is.a.String.which.equal("normal"); }); + it('should contains valid progress', function() { + page.should.have.property("progress"); + page.progress.should.have.property("chapters").with.lengthOf(1); + page.progress.should.have.property("current"); + }); + it('should contains no languages', function() { page.should.have.property("langs").with.lengthOf(0); }); |