summaryrefslogtreecommitdiffstats
path: root/test/configuration.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2015-09-15 11:09:08 +0200
committerSamy Pessé <samypesse@gmail.com>2015-09-15 11:09:08 +0200
commitbaf10e9b159b64c30ce650c83eb437675434e3e2 (patch)
tree583fc00922e6ca52fea87947af0b4d5703aabf7d /test/configuration.js
parent463a947df1e5c8c862c555a5b0ae675e356a0d5c (diff)
downloadgitbook-baf10e9b159b64c30ce650c83eb437675434e3e2.zip
gitbook-baf10e9b159b64c30ce650c83eb437675434e3e2.tar.gz
gitbook-baf10e9b159b64c30ce650c83eb437675434e3e2.tar.bz2
Improve book.resolve to ensure file is in the book
Adapt tests to plugin-highlight
Diffstat (limited to 'test/configuration.js')
-rw-r--r--test/configuration.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/configuration.js b/test/configuration.js
index eedec49..2cff26e 100644
--- a/test/configuration.js
+++ b/test/configuration.js
@@ -29,4 +29,12 @@ describe('Configuration', function () {
book.options.title.should.be.equal("js-config");
});
});
+
+ it('should provide configuration on book.config.get', function() {
+ return books.parse("basic")
+ .then(function(book) {
+ book.config.get('description').should.be.equal("Default description for the book.");
+ book.getConfig('description').should.be.equal("Default description for the book.");
+ });
+ });
});