diff options
Diffstat (limited to 'test')
-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'); }); + }); }); |