diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-01-19 15:46:34 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-01-19 15:46:34 +0100 |
commit | 2ae392436536b4abd9f7edf195eb6b0c0a0985f1 (patch) | |
tree | 9673e6fd3ab161ef956e56b9e89f1b2207895182 /test/helper.js | |
parent | d172aaefee8eb733d23a4e92abd79cbc4a43f801 (diff) | |
download | gitbook-2ae392436536b4abd9f7edf195eb6b0c0a0985f1.zip gitbook-2ae392436536b4abd9f7edf195eb6b0c0a0985f1.tar.gz gitbook-2ae392436536b4abd9f7edf195eb6b0c0a0985f1.tar.bz2 |
Fix parsing of langs
Diffstat (limited to 'test/helper.js')
-rw-r--r-- | test/helper.js | 9 |
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 + ); }); |