diff options
Diffstat (limited to 'test/generation.js')
-rw-r--r-- | test/generation.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/generation.js b/test/generation.js index 2083ca0..4176c8a 100644 --- a/test/generation.js +++ b/test/generation.js @@ -2,8 +2,16 @@ var path = require('path'); var _ = require('lodash'); var assert = require('assert'); +var fs = require('../lib/utils/fs'); + describe('Book generation', function () { it('should correctly generate a book with json', function(done) { - qdone(book1.generate("json"), done); + var OUTPUT_PATH = book1.options.output; + + qdone( + book1.generate("json") + .fin(function() { + return fs.remove(OUTPUT_PATH); + }), done); }); }); |