summaryrefslogtreecommitdiffstats
path: root/test/init.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2016-01-22 21:04:36 +0100
committerSamy Pessé <samypesse@gmail.com>2016-01-22 21:04:36 +0100
commit877f2e477b010f9f37a9044606f110a90f077680 (patch)
tree5cd61cf3b00ba10dc6110535ed9fdf67d8baba72 /test/init.js
parentc8e2fc0e57d223c01a51d6ee186fc1662cd74d13 (diff)
downloadgitbook-877f2e477b010f9f37a9044606f110a90f077680.zip
gitbook-877f2e477b010f9f37a9044606f110a90f077680.tar.gz
gitbook-877f2e477b010f9f37a9044606f110a90f077680.tar.bz2
Start rewrite
Diffstat (limited to 'test/init.js')
-rw-r--r--test/init.js24
1 files changed, 0 insertions, 24 deletions
diff --git a/test/init.js b/test/init.js
deleted file mode 100644
index 625d77c..0000000
--- a/test/init.js
+++ /dev/null
@@ -1,24 +0,0 @@
-var fs = require('fs');
-var path = require('path');
-var should = require('should');
-
-var Book = require('../').Book;
-var LOG_LEVELS = require('../').LOG_LEVELS;
-
-describe('Init Books', function () {
- var initRoot;
-
- before(function() {
- initRoot = path.resolve(__dirname, 'books/init');
- return Book.init(initRoot, {
- 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();
- });
-});