summaryrefslogtreecommitdiffstats
path: root/test/init.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/init.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/init.js')
-rw-r--r--test/init.js22
1 files changed, 11 insertions, 11 deletions
diff --git a/test/init.js b/test/init.js
index 8415b20..7e5ffee 100644
--- a/test/init.js
+++ b/test/init.js
@@ -1,11 +1,11 @@
-var fs = require('fs');
-var path = require('path');
-var should = require('should');
+var fs = require("fs");
+var path = require("path");
+var should = require("should");
-var Book = require('../').Book;
-var LOG_LEVELS = require('../').LOG_LEVELS;
+var Book = require("../").Book;
+var LOG_LEVELS = require("../").LOG_LEVELS;
-describe('Init Books', function () {
+describe("Init Books", function () {
var initRoot;
before(function() {
@@ -15,10 +15,10 @@ describe('Init Books', function () {
});
});
- it('should create all chapters', function() {
- should(fs.existsSync(path.resolve(initRoot, "hello.md"))).be.ok;
- should(fs.existsSync(path.resolve(initRoot, "hello2.md"))).be.ok;
- should(fs.existsSync(path.resolve(initRoot, "hello3/hello4.md"))).be.ok;
- should(fs.existsSync(path.resolve(initRoot, "hello3/hello5/hello6.md"))).be.ok;
+ it("should create all chapters", function() {
+ should(fs.existsSync(path.resolve(initRoot, "hello.md"))).be.ok();
+ should(fs.existsSync(path.resolve(initRoot, "hello2.md"))).be.ok();
+ should(fs.existsSync(path.resolve(initRoot, "hello3/hello4.md"))).be.ok();
+ should(fs.existsSync(path.resolve(initRoot, "hello3/hello5/hello6.md"))).be.ok();
});
});