Fix asciidoc test generation

This commit is contained in:
Samy Pessé
2015-01-21 11:28:59 +01:00
parent 9f9265ad76
commit 0da50819d6
2 changed files with 9 additions and 0 deletions
+9
View File
@@ -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")));