diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-01-28 18:39:44 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-01-28 18:39:44 +0100 |
commit | 4b465bedea94688a9adfb9136c9d2970d5496274 (patch) | |
tree | 7e29cc10d07b86d86239bd1cd59fab7996b412ce /test/6-parse.js | |
parent | 461ef2c68e9086bd77f0a25d57956ebf60308f7c (diff) | |
download | gitbook-4b465bedea94688a9adfb9136c9d2970d5496274.zip gitbook-4b465bedea94688a9adfb9136c9d2970d5496274.tar.gz gitbook-4b465bedea94688a9adfb9136c9d2970d5496274.tar.bz2 |
Fix tests for languages parsing
Diffstat (limited to 'test/6-parse.js')
-rw-r--r-- | test/6-parse.js | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/6-parse.js b/test/6-parse.js index 422744d..a575720 100644 --- a/test/6-parse.js +++ b/test/6-parse.js @@ -18,5 +18,30 @@ describe('Parsing', function() { return book.parse().should.be.rejected; }); }); + + + describe('Multilingual book', function() { + var book; + + before(function() { + return mock.setupBook({ + 'LANGS.md': '# Languages\n\n' + + '* [English](./en)\n' + + '* [French](./fr)\n\n', + 'en/README.md': '# English', + 'en/SUMMARY.md': '# Summary', + 'fr/README.md': '# French', + 'fr/SUMMARY.md': '# Summary' + }) + .then(function(_book) { + book = _book; + return book.parse(); + }); + }); + + it('should list language books', function() { + + }); + }); }); |