diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-01-21 22:51:59 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-01-21 22:51:59 +0100 |
commit | 85930161f7a32c6c5c7de82a47554ed2855c14df (patch) | |
tree | 5c784ec80b59dd71867527d1658b1b5186b73a1e /test/configuration.js | |
parent | 4f9ece1ec114901d817c77e584b933f195ece923 (diff) | |
download | gitbook-85930161f7a32c6c5c7de82a47554ed2855c14df.zip gitbook-85930161f7a32c6c5c7de82a47554ed2855c14df.tar.gz gitbook-85930161f7a32c6c5c7de82a47554ed2855c14df.tar.bz2 |
Normalize tests
Diffstat (limited to 'test/configuration.js')
-rw-r--r-- | test/configuration.js | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/test/configuration.js b/test/configuration.js index 57bead9..e690f2c 100644 --- a/test/configuration.js +++ b/test/configuration.js @@ -4,25 +4,11 @@ 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/configuration/json')); - book.config.load() - .then(function() { - assert(book.options.title == "Test"); - }) - .then(function() { - done() - }, done); + it('should correctly load from json', function() { + assert(books[0].options.title == "Test"); }); - 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); + it('should correctly load from javascript', function() { + assert(books[4].options.title == "Test 2"); }); }); |