summaryrefslogtreecommitdiffstats
path: root/test/init.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/init.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/init.js')
-rw-r--r--test/init.js26
1 files changed, 13 insertions, 13 deletions
diff --git a/test/init.js b/test/init.js
index 7e5ffee..625d77c 100644
--- a/test/init.js
+++ b/test/init.js
@@ -1,24 +1,24 @@
-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() {
- initRoot = path.resolve(__dirname, "books/init");
+ initRoot = path.resolve(__dirname, 'books/init');
return Book.init(initRoot, {
- logLevel: LOG_LEVELS.DISABLED,
+ logLevel: LOG_LEVELS.DISABLED
});
});
- 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();
});
});