mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-21 01:53:26 +00:00
Improve test for parsing multilanguages books
This commit is contained in:
@@ -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");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user