From 0da50819d663b94bb85ffcaae4231a635921431c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samy=20Pess=C3=A9?= Date: Wed, 21 Jan 2015 11:28:59 +0100 Subject: [PATCH] Fix asciidoc test generation --- test/fixtures/test3/{test3.adoc => test2.adoc} | 0 test/generation.js | 9 +++++++++ 2 files changed, 9 insertions(+) rename test/fixtures/test3/{test3.adoc => test2.adoc} (100%) diff --git a/test/fixtures/test3/test3.adoc b/test/fixtures/test3/test2.adoc similarity index 100% rename from test/fixtures/test3/test3.adoc rename to test/fixtures/test3/test2.adoc diff --git a/test/generation.js b/test/generation.js index fd486bdd2..d2d057430 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")));