summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/helper.js4
-rw-r--r--test/parsing.js1
2 files changed, 3 insertions, 2 deletions
diff --git a/test/helper.js b/test/helper.js
index f9723b9..74f461a 100644
--- a/test/helper.js
+++ b/test/helper.js
@@ -17,9 +17,9 @@ before(function(done) {
global.book2 = new Book(path.join(__dirname, './fixtures/test2'));
qdone(
- global.book1.init()
+ global.book1.parse()
.then(function() {
- return global.book2.init();
+ return global.book2.parse();
}),
done
);
diff --git a/test/parsing.js b/test/parsing.js
index 59ef846..db14d13 100644
--- a/test/parsing.js
+++ b/test/parsing.js
@@ -31,6 +31,7 @@ describe('Book parsing', function () {
it('should correctly parse the languages', function() {
assert.equal(book2.books.length, 2);
+ assert(book2.isMultilingual());
assert.equal(book2.books[0].options.lang, "en");
assert.equal(book2.books[0].options.title, "English Book");