diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-03-24 13:24:20 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-03-24 13:24:20 +0100 |
commit | 346c05f0de8a06ba07e7644f80aa6b3a7b8254a6 (patch) | |
tree | 9c42920068a14ab7ff0e24d1a57f4810561095ae /test/helper.js | |
parent | 73c69923b34b30105750d1e72990d5a9b0ca1596 (diff) | |
download | gitbook-346c05f0de8a06ba07e7644f80aa6b3a7b8254a6.zip gitbook-346c05f0de8a06ba07e7644f80aa6b3a7b8254a6.tar.gz gitbook-346c05f0de8a06ba07e7644f80aa6b3a7b8254a6.tar.bz2 |
Add tests for configuration parsing
Diffstat (limited to 'test/helper.js')
-rw-r--r-- | test/helper.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/helper.js b/test/helper.js index 8726667..f6b671b 100644 --- a/test/helper.js +++ b/test/helper.js @@ -27,6 +27,7 @@ function generateBook(bookId, test) { // Generate and return a book function parseBook(bookId, test) { + test = test || "website"; BOOKS[bookId] = BOOKS[bookId] || {}; if (BOOKS[bookId][test]) return Q(BOOKS[bookId][test]); |