1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-04 15:09:16 +02:00

Change Book.coverUrl to return null when there is no cover

CoverUrl now returns an undefined when there is no cover. However not
having a cover is expected behavior for an epub without a cover.
This commit is contained in:
Christiaan Baartse 2020-05-22 11:34:03 +02:00
parent 0b0f2e1b2d
commit d690dd9d68
4 changed files with 15 additions and 14 deletions

View file

@ -61,7 +61,7 @@ describe('Book', function() {
});
it('should have a empty coverUrl', async function() {
let coverUrl = await book.coverUrl()
assert.equal(coverUrl, undefined, "cover url should be undefined" );
assert.equal(coverUrl, null, "cover url should be null" );
});
});
});