1
0
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:
XhmikosR
2020-11-02 16:13:24 +02:00
committed by GitHub
parent e2697b0573
commit c9f8fa45fb
4 changed files with 9 additions and 9 deletions

View File

@@ -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()
})