diff options
-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"))); |