diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-01-22 17:15:06 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-01-22 17:15:06 +0100 |
commit | c47093e82a1814dd421c37fc3cbef9512541d526 (patch) | |
tree | 0056c16a3817c0f29dd52154f84fa04f84b8396a /test | |
parent | 57bdc102bc5565d50ac0c92f282f11d0a1fc99d8 (diff) | |
download | gitbook-c47093e82a1814dd421c37fc3cbef9512541d526.zip gitbook-c47093e82a1814dd421c37fc3cbef9512541d526.tar.gz gitbook-c47093e82a1814dd421c37fc3cbef9512541d526.tar.bz2 |
Add test for generation of multilingual book
Diffstat (limited to 'test')
-rw-r--r-- | test/website.js | 8 |
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); + }); }); |