0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-29 11:24:18 +01:00
Bootstrap/js/tests/unit
Ben Lertlumprasertkul 052def4568
Remove potential false positive assertions (#33288)
* Remove potential false positive assertions

querySelector() returns null but

expect(document.querySelector('...')).toBeDefined()

tests that the value is not undefined

* Migrated assertions from .toBeDefined() to .not.toBeNull() for .getInstance() calls in tests

* Migrate offcanvas assertions from .toBeDefined() to .not.toBeNull() for .getInstance() call

* convert more cases to not.toBeNull assertions

Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2021-05-11 08:45:57 +03:00
..
dom Fix regression for handling mouseenter/mouseleave events introduced by #33310 (#33679) 2021-04-19 08:30:33 +03:00
util Fix backdrop rootElement not initialized in Modal (#33853) 2021-05-10 21:17:53 +03:00
.eslintrc.json Minor ESLint rules cleanup (#32904) 2021-01-28 11:34:20 +02:00
alert.spec.js Remove potential false positive assertions (#33288) 2021-05-11 08:45:57 +03:00
button.spec.js Remove potential false positive assertions (#33288) 2021-05-11 08:45:57 +03:00
carousel.spec.js Remove potential false positive assertions (#33288) 2021-05-11 08:45:57 +03:00
collapse.spec.js Remove potential false positive assertions (#33288) 2021-05-11 08:45:57 +03:00
dropdown.spec.js Remove potential false positive assertions (#33288) 2021-05-11 08:45:57 +03:00
jquery.spec.js tests: replace deprecated jQuery method (#32309) 2020-12-16 17:21:43 +02:00
modal.spec.js Remove potential false positive assertions (#33288) 2021-05-11 08:45:57 +03:00
offcanvas.spec.js Remove potential false positive assertions (#33288) 2021-05-11 08:45:57 +03:00
popover.spec.js Remove potential false positive assertions (#33288) 2021-05-11 08:45:57 +03:00
scrollspy.spec.js Remove potential false positive assertions (#33288) 2021-05-11 08:45:57 +03:00
tab.spec.js Remove potential false positive assertions (#33288) 2021-05-11 08:45:57 +03:00
toast.spec.js Remove potential false positive assertions (#33288) 2021-05-11 08:45:57 +03:00
tooltip.spec.js Remove potential false positive assertions (#33288) 2021-05-11 08:45:57 +03:00