aboutsummaryrefslogtreecommitdiff
path: root/js/tests/unit/popover.spec.js
AgeCommit message (Collapse)AuthorFilesLines
2021-08-03Regression on tooltip template creation process. (#34628)GeoSot1-1/+32
* Regression on tooltip template creation process. * check if template content does not exist, or given argument is empty * call `setContent()` once.
2021-07-30Enable a few eslint-config-xo rules (#34620)XhmikosR1-1/+1
* unicorn/prefer-dom-node-append * unicorn/prefer-dom-node-remove
2021-06-03Add `getOrCreateInstance` method in base-component (#33276)GeoSot1-0/+54
Co-authored-by: Rohit Sharma <[email protected]> Co-authored-by: XhmikosR <[email protected]>
2021-05-20Allow use of `dispose/hide` methods on Tooltip & Popover from ↵GeoSot1-15/+0
jQueryInterface, when component does not exists. (#33371)
2021-05-18Don't add empty content holder when there is no content available (#33982)Rohit Sharma1-0/+40
* Remove content holder when there is no content * Add tests to check the removal of header/content Co-authored-by: XhmikosR <[email protected]>
2021-05-11Remove potential false positive assertions (#33288)Ben Lertlumprasertkul1-6/+6
* 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 <[email protected]>
2021-01-13Throw a `TypeError` instead of the generic `Error` (#32585)Rohit Sharma1-4/+2
* Change from Error to TypeError * Convert the `NAME` to upper case to make the consistency in the error message * Update the remaining tests to be stricter Co-authored-by: XhmikosR <[email protected]>
2020-11-29Switch to Jasmine's `toBeInstanceOf` matcherXhmikosR1-1/+1
2020-11-29create a base componentJohann-S1-0/+1
2020-11-25Ability to add custom class in tooltip/popover (#32217)Rohit Sharma1-0/+16
Porting of #31834 to main. Co-authored-by: XhmikosR <[email protected]>
2020-11-14Add `bs` in data attributesRohit Sharma1-9/+9
- Add `bs` in data APIs everywhere - Update unit tests
2020-03-25fix: remove make array util function (#30430)Johann-S1-2/+1
2019-10-09Rename "js/tests/units" to "js/tests/unit". (#29503)XhmikosR1-0/+251