summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/parsing.js6
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");
});
});