summaryrefslogtreecommitdiffstats
path: root/test/website.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2015-01-22 17:15:06 +0100
committerSamy Pessé <samypesse@gmail.com>2015-01-22 17:15:06 +0100
commitc47093e82a1814dd421c37fc3cbef9512541d526 (patch)
tree0056c16a3817c0f29dd52154f84fa04f84b8396a /test/website.js
parent57bdc102bc5565d50ac0c92f282f11d0a1fc99d8 (diff)
downloadgitbook-c47093e82a1814dd421c37fc3cbef9512541d526.zip
gitbook-c47093e82a1814dd421c37fc3cbef9512541d526.tar.gz
gitbook-c47093e82a1814dd421c37fc3cbef9512541d526.tar.bz2
Add test for generation of multilingual book
Diffstat (limited to 'test/website.js')
-rw-r--r--test/website.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/website.js b/test/website.js
index 7efcec1..f1dabfb 100644
--- a/test/website.js
+++ b/test/website.js
@@ -21,4 +21,12 @@ describe('Website Generator', function () {
assert(INDEX.indexOf("styles/website.css") > 0);
}, done);
});
+
+ it('should correctly generate a multilingual book to website', function(done) {
+ testGeneration(books[2], "site", function(output) {
+ assert(fs.existsSync(path.join(output, "index.html")));
+ assert(fs.existsSync(path.join(output, "fr/index.html")));
+ assert(fs.existsSync(path.join(output, "en/index.html")));
+ }, done);
+ });
});