summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2015-01-21 11:28:59 +0100
committerSamy Pessé <samypesse@gmail.com>2015-01-21 11:28:59 +0100
commit0da50819d663b94bb85ffcaae4231a635921431c (patch)
treef716a2a8f49612109440e4b4d7758dd9d2aa2a25
parent9f9265ad7620059c2ee6ec829235269a6ee02946 (diff)
downloadgitbook-0da50819d663b94bb85ffcaae4231a635921431c.zip
gitbook-0da50819d663b94bb85ffcaae4231a635921431c.tar.gz
gitbook-0da50819d663b94bb85ffcaae4231a635921431c.tar.bz2
Fix asciidoc test generation
-rw-r--r--test/fixtures/test3/test2.adoc (renamed from test/fixtures/test3/test3.adoc)0
-rw-r--r--test/generation.js9
2 files changed, 9 insertions, 0 deletions
diff --git a/test/fixtures/test3/test3.adoc b/test/fixtures/test3/test2.adoc
index e69de29..e69de29 100644
--- a/test/fixtures/test3/test3.adoc
+++ b/test/fixtures/test3/test2.adoc
diff --git a/test/generation.js b/test/generation.js
index fd486bd..d2d0574 100644
--- a/test/generation.js
+++ b/test/generation.js
@@ -32,6 +32,15 @@ describe('Book generation', function () {
}, done);
});
+ it('should correctly generate an asciidoc book to json', function(done) {
+ testGeneration(book3, "json", function(output) {
+ assert(fs.existsSync(path.join(output, "README.json")));
+ assert(fs.existsSync(path.join(output, "test.json")));
+ assert(fs.existsSync(path.join(output, "test1.json")));
+ assert(fs.existsSync(path.join(output, "test2.json")));
+ }, done);
+ });
+
it('should correctly generate a multilingual book to json', function(done) {
testGeneration(book2, "json", function(output) {
assert(fs.existsSync(path.join(output, "README.json")));