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:
parent
0b0f2e1b2d
commit
d690dd9d68
4 changed files with 15 additions and 14 deletions
|
@ -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" );
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue