diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-10-05 09:54:40 +0200 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-10-05 09:54:40 +0200 |
commit | 6c2539e886a2893aa7d9bd4c4f84260145de6bd1 (patch) | |
tree | c90dce4bb73fd29f4c75cfffd6e65c508b21084d /test | |
parent | aba25d8521a8f7129721c7b52621da7abc6222c5 (diff) | |
download | gitbook-6c2539e886a2893aa7d9bd4c4f84260145de6bd1.zip gitbook-6c2539e886a2893aa7d9bd4c4f84260145de6bd1.tar.gz gitbook-6c2539e886a2893aa7d9bd4c4f84260145de6bd1.tar.bz2 |
Move Book.init in another file
Diffstat (limited to 'test')
-rw-r--r-- | test/init.js | 26 |
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(); }); }); |