summaryrefslogtreecommitdiffstats
path: root/test/init.js
diff options
context:
space:
mode:
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();
});
});