diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-02-11 11:53:32 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-02-11 11:53:32 +0100 |
commit | 02cff8c72ca742cd06a65d171657eb230eedbc5b (patch) | |
tree | a56125291f2fbb8a54d3e68210818133e53701fd /test/output-json.js | |
parent | a67993ac0b08665502c67d9852124d17d66f4072 (diff) | |
download | gitbook-02cff8c72ca742cd06a65d171657eb230eedbc5b.zip gitbook-02cff8c72ca742cd06a65d171657eb230eedbc5b.tar.gz gitbook-02cff8c72ca742cd06a65d171657eb230eedbc5b.tar.bz2 |
Add base for page parsing
Diffstat (limited to 'test/output-json.js')
-rw-r--r-- | test/output-json.js | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/test/output-json.js b/test/output-json.js index ee345e2..b2387a7 100644 --- a/test/output-json.js +++ b/test/output-json.js @@ -1,11 +1,21 @@ var mock = require('./mock'); describe('JSON Output', function() { - it('should correctly generate a default book', function() { - return mock.outputDefaultBook('json') - .then(function(output) { + + describe('Sample book', function() { + var output; + + before(function() { + return mock.outputDefaultBook('json') + .then(function(_output) { + output = _output; + }); + }); + + it('should correctly generate a README.json', function() { output.should.have.file('README.json'); }); + }); }); |