summaryrefslogtreecommitdiffstats
path: root/test/configuration.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2016-02-26 09:41:26 +0100
committerSamy Pessé <samypesse@gmail.com>2016-02-26 09:41:26 +0100
commitd3d64f636c859f7f01a64f7774cf70bd8ccdc562 (patch)
tree4f7731f37c3a793d187b0ab1cd77680e69534c6c /test/configuration.js
parent4cb9cbb5ae3aa8f9211ffa3ac5e3d34232c0ca4f (diff)
parenteef072693b17526347c37b66078a5059c71caa31 (diff)
downloadgitbook-d3d64f636c859f7f01a64f7774cf70bd8ccdc562.zip
gitbook-d3d64f636c859f7f01a64f7774cf70bd8ccdc562.tar.gz
gitbook-d3d64f636c859f7f01a64f7774cf70bd8ccdc562.tar.bz2
Merge pull request #1109 from GitbookIO/3.0.0
Version 3.0.0
Diffstat (limited to 'test/configuration.js')
-rw-r--r--test/configuration.js37
1 files changed, 0 insertions, 37 deletions
diff --git a/test/configuration.js b/test/configuration.js
deleted file mode 100644
index d30fd61..0000000
--- a/test/configuration.js
+++ /dev/null
@@ -1,37 +0,0 @@
-describe('Configuration', function () {
- it('should extract default title from README', function() {
- return books.parse('basic')
- .then(function(book) {
- book.options.title.should.be.equal('Readme');
- });
- });
-
- it('should extract default description from README', function() {
- return books.parse('basic')
- .then(function(book) {
- book.options.description.should.be.equal('Default description for the book.');
- });
- });
-
- it('should correctly load from json (book.json)', function() {
- return books.parse('config-json')
- .then(function(book) {
- book.options.title.should.be.equal('json-config');
- });
- });
-
- it('should correctly load from JavaScript (book.js)', function() {
- return books.parse('config-js')
- .then(function(book) {
- 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.');
- });
- });
-});