diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-01-21 11:28:59 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-01-21 11:28:59 +0100 |
commit | 0da50819d663b94bb85ffcaae4231a635921431c (patch) | |
tree | f716a2a8f49612109440e4b4d7758dd9d2aa2a25 | |
parent | 9f9265ad7620059c2ee6ec829235269a6ee02946 (diff) | |
download | gitbook-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.js | 9 |
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"))); |