From 2f3d6f8dff7d50fb1e60b90cbb3245dfec2fd4f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samy=20Pess=C3=A9?= Date: Mon, 19 Jan 2015 15:48:22 +0100 Subject: [PATCH] Improve test for parsing multilanguages books --- test/parsing.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/parsing.js b/test/parsing.js index b1c4114df..59ef846f6 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"); }); });