0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-01 13:24:25 +01:00
Bootstrap/js/tests/unit
GeoSot 6e1c9096f0
Move get element functionality to a helper (#33327)
Looking around on js components I found out many checks, different expressed but with same purpose.
Some of them are trying to parse string to element, others, jQuery element to js simple nodeElement etc

With this Pr, I am trying to give a standard way to parse an element

So this pr:

* Creates `getElement` helper that tries to parse an argument to element or null
* Changes `isElement` to make  explicit checks and return Boolean 
* fixes tests deficiencies
2021-05-13 18:17:20 +03:00
..
dom Fix regression for handling mouseenter/mouseleave events introduced by #33310 (#33679) 2021-04-19 08:30:33 +03:00
util Move get element functionality to a helper (#33327) 2021-05-13 18:17:20 +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
base-component.spec.js Extract static DATA_KEY & EVENT_KEY to base-component (#33635) 2021-05-11 10:49:30 +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 Move get element functionality to a helper (#33327) 2021-05-13 18:17:20 +03:00
dropdown.spec.js Move get element functionality to a helper (#33327) 2021-05-13 18:17:20 +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 Fix offcanvas test to expect the initial body overflow value (#33927) 2021-05-11 11:06:32 +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 Popover/Tooltip: streamline config property to start with underscore (#33381) 2021-05-12 12:15:59 +03:00