summaryrefslogtreecommitdiffstats
path: root/test/configuration.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/configuration.js')
-rw-r--r--test/configuration.js13
1 files changed, 12 insertions, 1 deletions
diff --git a/test/configuration.js b/test/configuration.js
index 6540d34..57bead9 100644
--- a/test/configuration.js
+++ b/test/configuration.js
@@ -5,7 +5,7 @@ var Book = require('../').Book;
describe('Configuration parsing', function () {
it('should correctly load from json', function(done) {
- var book = new Book(path.join(__dirname, './fixtures/config'));
+ var book = new Book(path.join(__dirname, './fixtures/configuration/json'));
book.config.load()
.then(function() {
assert(book.options.title == "Test");
@@ -14,4 +14,15 @@ describe('Configuration parsing', function () {
done()
}, done);
});
+
+ it('should correctly load from javascript', function(done) {
+ var book = new Book(path.join(__dirname, './fixtures/configuration/js'));
+ book.config.load()
+ .then(function() {
+ assert(book.options.title == "Test 2");
+ })
+ .then(function() {
+ done()
+ }, done);
+ });
});