summaryrefslogtreecommitdiffstats
path: root/test/configuration.js
blob: 6540d34e535b00dcbeea34cc2117a3212dbb3319 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
var path = require('path');
var assert = require('assert');

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'));
        book.config.load()
        .then(function() {
        	assert(book.options.title == "Test");
        })
        .then(function() {
        	done()
        }, done);
    });
});