diff options
Diffstat (limited to 'test/helper.js')
-rw-r--r-- | test/helper.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/helper.js b/test/helper.js index 6e167ea..7e53151 100644 --- a/test/helper.js +++ b/test/helper.js @@ -3,6 +3,7 @@ var Q = require('q'); var fs = require('fs'); var _ = require('lodash'); +var fsUtil = require("../lib/utils/fs"); var Book = require('../').Book; // Nicety for mocha / Q @@ -48,6 +49,9 @@ before(function(done) { qdone( _.reduce(global.books, function(prev, book) { return prev.then(function() { + return fsUtil.remove(path.join(book.root, "_book")); + }) + .then(function() { return book.parse(); }); }, Q()), |