diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-01-19 15:48:22 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-01-19 15:48:22 +0100 |
commit | 2f3d6f8dff7d50fb1e60b90cbb3245dfec2fd4f6 (patch) | |
tree | 8a91b6d78d1607dcaeeda7393e98741584f02c79 /test | |
parent | 2ae392436536b4abd9f7edf195eb6b0c0a0985f1 (diff) | |
download | gitbook-2f3d6f8dff7d50fb1e60b90cbb3245dfec2fd4f6.zip gitbook-2f3d6f8dff7d50fb1e60b90cbb3245dfec2fd4f6.tar.gz gitbook-2f3d6f8dff7d50fb1e60b90cbb3245dfec2fd4f6.tar.bz2 |
Improve test for parsing multilanguages books
Diffstat (limited to 'test')
-rw-r--r-- | test/parsing.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/parsing.js b/test/parsing.js index b1c4114..59ef846 100644 --- a/test/parsing.js +++ b/test/parsing.js @@ -31,5 +31,11 @@ describe('Book parsing', function () { it('should correctly parse the languages', function() { assert.equal(book2.books.length, 2); + + assert.equal(book2.books[0].options.lang, "en"); + assert.equal(book2.books[0].options.title, "English Book"); + + assert.equal(book2.books[1].options.lang, "fr"); + assert.equal(book2.books[1].options.title, "French Book"); }); }); |