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

var Book = require('../').Book;

describe('Configuration parsing', function () {
    it('should correctly load from json', function() {
        assert(books[0].options.title == "Test");
    });

    it('should correctly load from javascript', function() {
        assert(books[4].options.title == "Test 2");
    });
});