aboutsummaryrefslogtreecommitdiff
path: root/js/tests/unit/popover.spec.js
AgeCommit message (Collapse)AuthorFilesLines
2024-07-19Fix `this` reference for JavaScript functions (#38725)Nathan Sarang-Walters1-0/+54
2023-03-29Tweak and re-organize ESLint config (#38369)XhmikosR1-3/+3
* Tweak and re-organize ESLint config * merge individual configs to the root config * enable more eslint-plugin-import rules * lint markdown files * Lint
2022-05-31JS: tests fixes & standardization of spies usage (#36398)Louis-Maxime Piton1-4/+4
* Fix carousel spec typo * Change carousel test name in align with testing method * Make the spies declarations the same everywhere
2022-02-19Make event name helper and use it on tooltip & popover to reduce dist sizes ↵GeoSot1-7/+1
(#35856) * feat: create eventName getter function in baseComponent * refactor: use `eventName` getter on tooltip & popover
2022-02-01Fix Popover test that randomly fails on BrowserStack (#35757)GeoSot1-12/+7
Co-authored-by: XhmikosR <[email protected]>
2022-01-30tests: replace 'done' callback with 'Promise' to fix deprecation errors (#35659)GeoSot1-126/+144
Reference: https://jasmine.github.io/tutorials/async 'DEPRECATION: An asynchronous function called its 'done' callback more than once. This is a bug in the spec, beforeAll, beforeEach, afterAll, or afterEach function in question. This will be treated as an error in a future version. See<https://jasmine.github.io/tutorials/upgrading_to_Jasmine_4.0#deprecations-due-to-calling-done-multiple-times> for more information.
2021-12-15Popover.js: Accept empty content through `data-bs-content` (#35514)GeoSot1-14/+30
Co-authored-by: XhmikosR <[email protected]>
2021-12-01Tooltip/Popover: add underscore prefix to protected functionsGeoSot1-1/+1
2021-12-01Fix popover arrow & tooltip template after the `setContent` addition (#35441)GeoSot1-0/+16
2021-12-01tests: tweak Jasmine's matchers usageXhmikosR1-4/+4
Use: * toBeNull * toEqual * toBeTrue * toBeFalse * toHaveSize * toHaveClass
2021-11-25Add a template factory helper to handle all template cases (#34519)GeoSot1-3/+4
Co-authored-by: XhmikosR <[email protected]>
2021-10-08tests: minor cleanup (#35138)XhmikosR1-2/+0
* tests: minor cleanup * tests: use the util noop function
2021-10-05Enable `unicorn/no-array-for-each` ruleXhmikosR1-2/+2
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