summaryrefslogtreecommitdiffstats
path: root/test/json.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/json.js')
-rw-r--r--test/json.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/json.js b/test/json.js
index 1620d00..5852df7 100644
--- a/test/json.js
+++ b/test/json.js
@@ -41,4 +41,13 @@ describe('JSON generator', function () {
assert(fs.existsSync(path.join(output, "test2.json")));
}, done);
});
+
+ it('should correctly generate a book with inclusion', function(done) {
+ testGeneration(books[5], "json", function(output) {
+ assert(fs.existsSync(path.join(output, "README.json")));
+
+ var readme = JSON.parse(fs.readFileSync(path.join(output, "README.json")));
+ assert(readme.sections[0].content.indexOf('Hello World') > 0);
+ }, done);
+ });
});