mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-09 02:41:35 +00:00
Fix author name matching bug - add optional chaining
This commit is contained in:
parent
6d3404272c
commit
7113f001eb
3 changed files with 3 additions and 3 deletions
|
|
@ -61,7 +61,7 @@ describe('AuthorCard', () => {
|
|||
const height = $el.height()
|
||||
const defaultHeight = 192
|
||||
const defaultWidth = defaultHeight * 0.8
|
||||
expect(width).to.be.closeTo(defaultWidth, 0.01)
|
||||
expect(width).to?.be?.closeTo(defaultWidth, 0.01)
|
||||
expect(height).to.be.closeTo(defaultHeight, 0.01)
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue