summaryrefslogtreecommitdiffstats
path: root/test/configuration.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2015-09-15 14:21:27 +0200
committerSamy Pessé <samypesse@gmail.com>2015-09-15 14:21:27 +0200
commit6732957e42350b3aefa4b1c80371baea92950651 (patch)
tree1605473bf22c7e4ab90a6cc9bebf5cb807fa1d90 /test/configuration.js
parent5f56098ae7fae80a4dd75a944c38201560b480c6 (diff)
parent1fd00068595dfced5a0f16ac05ae2553d09608bc (diff)
downloadgitbook-6732957e42350b3aefa4b1c80371baea92950651.zip
gitbook-6732957e42350b3aefa4b1c80371baea92950651.tar.gz
gitbook-6732957e42350b3aefa4b1c80371baea92950651.tar.bz2
Merge pull request #930 from GitbookIO/jshint
Add config for jshint and fix lint errors
Diffstat (limited to 'test/configuration.js')
-rw-r--r--test/configuration.js19
1 files changed, 8 insertions, 11 deletions
diff --git a/test/configuration.js b/test/configuration.js
index 2cff26e..c96c10d 100644
--- a/test/configuration.js
+++ b/test/configuration.js
@@ -1,40 +1,37 @@
-var fs = require('fs');
-var path = require('path');
-
-describe('Configuration', function () {
- it('should extract default title from README', function() {
+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() {
+ 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() {
+ 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() {
+ 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() {
+ 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.");
});
});
});