SIGN IN SIGN UP
twbs / bootstrap UNCLAIMED

The most popular HTML, CSS, and JavaScript framework for developing responsive, mobile first projects on the web.

0 0 3 MDX

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>
B
Ben Lertlumprasertkul committed
052def456845c2147e4e6c99d17bba12fcbee34c
Parent: 9c3ab65
Committed by GitHub <noreply@github.com> on 5/11/2021, 5:45:57 AM