summaryrefslogtreecommitdiffstats
path: root/test/output-json.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2016-02-11 11:14:52 +0100
committerSamy Pessé <samypesse@gmail.com>2016-02-11 11:14:52 +0100
commita67993ac0b08665502c67d9852124d17d66f4072 (patch)
tree42c7b93b2b1b182896312c0bd64fc33559dd51c4 /test/output-json.js
parente540d25665e1933ddd1883d0e1dd9c373ffe3cd8 (diff)
downloadgitbook-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.js5
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');
+ });
});
});