summaryrefslogtreecommitdiffstats
path: root/test/configuration.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2015-10-06 09:42:49 +0200
committerSamy Pessé <samypesse@gmail.com>2015-10-06 09:42:49 +0200
commitce1e0e187339976fc3cae7ef70bcfdd0eaf68981 (patch)
treec71ab2b8badd7a54759790bde083cab721796d92 /test/configuration.js
parentbcb224d1cb0add4285538f03956f6f6a1574e49a (diff)
parentc2775b3b63e92a7047f019a9d56851ce4fdd6c02 (diff)
downloadgitbook-ce1e0e187339976fc3cae7ef70bcfdd0eaf68981.zip
gitbook-ce1e0e187339976fc3cae7ef70bcfdd0eaf68981.tar.gz
gitbook-ce1e0e187339976fc3cae7ef70bcfdd0eaf68981.tar.bz2
Merge pull request #964 from GitbookIO/features/plugin_api
Better APIs for Plugins
Diffstat (limited to 'test/configuration.js')
-rw-r--r--test/configuration.js34
1 files changed, 17 insertions, 17 deletions
diff --git a/test/configuration.js b/test/configuration.js
index c96c10d..d30fd61 100644
--- a/test/configuration.js
+++ b/test/configuration.js
@@ -1,37 +1,37 @@
-describe("Configuration", function () {
- it("should extract default title from README", function() {
- return books.parse("basic")
+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");
+ book.options.title.should.be.equal('Readme');
});
});
- it("should extract default description from README", function() {
- return books.parse("basic")
+ 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.");
+ 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")
+ 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");
+ book.options.title.should.be.equal('json-config');
});
});
- it("should correctly load from JavaScript (book.js)", function() {
- return books.parse("config-js")
+ 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");
+ book.options.title.should.be.equal('js-config');
});
});
- it("should provide configuration on book.config.get", function() {
- return books.parse("basic")
+ 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.");
+ book.config.get('description').should.be.equal('Default description for the book.');
+ book.getConfig('description').should.be.equal('Default description for the book.');
});
});
});