mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-17 19:06:40 +02:00
tests: tweak Jasmine usage (#32046)
* jasmine/expect-matcher * jasmine/prefer-jasmine-matcher Found with `eslint-plugin-jasmine`
This commit is contained in:
@@ -1320,8 +1320,8 @@ describe('Dropdown', () => {
|
||||
triggerDropdown.dispatchEvent(keydown)
|
||||
|
||||
expect(document.activeElement.classList.contains('d-none')).toEqual(false, '.d-none not focused')
|
||||
expect(document.activeElement.style.display === 'none').toEqual(false, '"display: none" not focused')
|
||||
expect(document.activeElement.style.visibility === 'hidden').toEqual(false, '"visibility: hidden" not focused')
|
||||
expect(document.activeElement.style.display).not.toBe('none', '"display: none" not focused')
|
||||
expect(document.activeElement.style.visibility).not.toBe('hidden', '"visibility: hidden" not focused')
|
||||
|
||||
done()
|
||||
})
|
||||
|
Reference in New Issue
Block a user