diff options
Diffstat (limited to 'test/configuration.js')
-rw-r--r-- | test/configuration.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/configuration.js b/test/configuration.js new file mode 100644 index 0000000..e690f2c --- /dev/null +++ b/test/configuration.js @@ -0,0 +1,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"); + }); +}); |