diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-01-19 22:44:17 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-01-19 22:44:17 +0100 |
commit | bac25cdf297a7fa54f21977aa17d455e439cdf51 (patch) | |
tree | 6e4c268ea67eed6e7360f9922e28dbe491897413 | |
parent | c15399613cf3e589eb106d37221fae9c54002d74 (diff) | |
download | gitbook-bac25cdf297a7fa54f21977aa17d455e439cdf51.zip gitbook-bac25cdf297a7fa54f21977aa17d455e439cdf51.tar.gz gitbook-bac25cdf297a7fa54f21977aa17d455e439cdf51.tar.bz2 |
Improve tests for multilingual json output
-rw-r--r-- | test/generation.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/generation.js b/test/generation.js index d339837..eb9ecfb 100644 --- a/test/generation.js +++ b/test/generation.js @@ -34,7 +34,9 @@ describe('Book generation', function () { it('should correctly generate a multilingual book to json', function(done) { testGeneration(book2, "json", function(output) { - + assert(fs.existsSync(path.join(output, "README.json"))); + assert(fs.existsSync(path.join(output, "en/README.json"))); + assert(fs.existsSync(path.join(output, "fr/README.json"))); }, done); }); }); |