diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-02-11 11:14:52 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-02-11 11:14:52 +0100 |
commit | a67993ac0b08665502c67d9852124d17d66f4072 (patch) | |
tree | 42c7b93b2b1b182896312c0bd64fc33559dd51c4 /test/output-json.js | |
parent | e540d25665e1933ddd1883d0e1dd9c373ffe3cd8 (diff) | |
download | gitbook-a67993ac0b08665502c67d9852124d17d66f4072.zip gitbook-a67993ac0b08665502c67d9852124d17d66f4072.tar.gz gitbook-a67993ac0b08665502c67d9852124d17d66f4072.tar.bz2 |
Add assertion for should to test existence of file
Diffstat (limited to 'test/output-json.js')
-rw-r--r-- | test/output-json.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/output-json.js b/test/output-json.js index 9e70771..ee345e2 100644 --- a/test/output-json.js +++ b/test/output-json.js @@ -2,7 +2,10 @@ var mock = require('./mock'); describe('JSON Output', function() { it('should correctly generate a default book', function() { - return mock.outputDefaultBook('json'); + return mock.outputDefaultBook('json') + .then(function(output) { + output.should.have.file('README.json'); + }); }); }); |