summaryrefslogtreecommitdiffstats
path: root/test/helper.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/helper.js')
-rw-r--r--test/helper.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/helper.js b/test/helper.js
index f80edcb..f9723b9 100644
--- a/test/helper.js
+++ b/test/helper.js
@@ -14,6 +14,13 @@ global.qdone = function qdone(promise, done) {
// Init before doing tests
before(function(done) {
global.book1 = new Book(path.join(__dirname, './fixtures/test1'));
+ global.book2 = new Book(path.join(__dirname, './fixtures/test2'));
- qdone(global.book1.init(), done);
+ qdone(
+ global.book1.init()
+ .then(function() {
+ return global.book2.init();
+ }),
+ done
+ );
});