aboutsummaryrefslogtreecommitdiff
path: root/js/tests/unit/tooltip.spec.js
AgeCommit message (Collapse)AuthorFilesLines
2024-07-19Fix `this` reference for JavaScript functions (#38725)Nathan Sarang-Walters1-4/+36
2024-02-06Build(deps-dev): Bump eslint-config-xo from 0.43.1 to 0.44.0 (#39651)dependabot[bot]1-1/+3
* Build(deps-dev): Bump eslint-config-xo from 0.43.1 to 0.44.0 Bumps [eslint-config-xo](https://github.com/xojs/eslint-config-xo) from 0.43.1 to 0.44.0. - [Release notes](https://github.com/xojs/eslint-config-xo/releases) - [Commits](https://github.com/xojs/eslint-config-xo/compare/v0.43.1...v0.44.0) --- updated-dependencies: - dependency-name: eslint-config-xo dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Update .eslintrc.json * Update .eslintrc.json * autofix --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: XhmikosR <[email protected]>
2023-03-29Tweak and re-organize ESLint config (#38369)XhmikosR1-4/+4
* Tweak and re-organize ESLint config * merge individual configs to the root config * enable more eslint-plugin-import rules * lint markdown files * Lint
2023-02-11Minor fix to avoid creating void elements in tooltip test file (#38034)Julien Déramond1-51/+51
2022-07-27Re-set tooltip title, on disposal (#36751)GeoSot1-0/+19
fix(reg): Re-set tooltip title, on disposal
2022-07-06Handle non-empty whitespace `textContent` in Tooltip trigger (#36588)Nathan Walters1-0/+19
2022-06-27Force tooltip and popover to recreate content every time it opens (#35679)GeoSot1-2/+4
2022-05-31JS: tests fixes & standardization of spies usage (#36398)Louis-Maxime Piton1-24/+24
* Fix carousel spec typo * Change carousel test name in align with testing method * Make the spies declarations the same everywhere
2022-04-21Manipulator: Add JSON parse support (#35077)GeoSot1-7/+4
Support parsing JSON from each component's main element using the `data-bs-config` attribute. The `bs-config` attribute will be reserved and omitted during `getDataAttributes` parsing. With this commit, every component, will create its config object, using: * defaults * data-bs-config * the rest of data attributes * configuration object given during instance initialization Co-authored-by: XhmikosR <[email protected]> Co-authored-by: Mark Otto <[email protected]> Co-authored-by: Mark Otto <[email protected]>
2022-02-19tests: revisit all tests using Promise.reject instead of throwing an error ↵GeoSot1-8/+8
(#35765)
2022-02-19Make event name helper and use it on tooltip & popover to reduce dist sizes ↵GeoSot1-6/+0
(#35856) * feat: create eventName getter function in baseComponent * refactor: use `eventName` getter on tooltip & popover
2022-02-15Update devDependencies (#35841)XhmikosR1-1/+1
* Update devDependencies * @babel/core ^7.17.0 → ^7.17.2 * @rollup/plugin-replace ^3.0.1 → ^3.1.0 * eslint ^8.8.0 → ^8.9.0 * eslint-config-xo ^0.39.0 → ^0.40.0 * hugo-bin ^0.80.1 → ^0.80.2 * karma ^6.3.15 → ^6.3.16 * rollup ^2.67.1 → ^2.67.2 * Fix new ESLint errors
2022-01-30tests: replace 'done' callback with 'Promise' to fix deprecation errors (#35659)GeoSot1-571/+651
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-09Fix tests fixture type (#35501)XhmikosR1-1/+1
Previously we were adding an Array instead of a String
2021-12-07Tooltip: remove title attribute before show & add tests (#35456)GeoSot1-0/+22
2021-12-02Tests: Minor fixes (#35455)Louis-Maxime Piton1-7/+10
2021-12-01Tooltip/Popover: add underscore prefix to protected functionsGeoSot1-34/+34
2021-12-01Tooltip: Change `_enter` & `_leave` to work without argumentsGeoSot1-2/+2
2021-12-01Fix popover arrow & tooltip template after the `setContent` addition (#35441)GeoSot1-0/+15
2021-12-01Tooltip: remove leftover method (#35440)GeoSot1-34/+0
Remove a leftover after #32692 Co-authored-by: XhmikosR <[email protected]>
2021-12-01tests: fix a few typosXhmikosR1-1/+1
2021-12-01tests: remove extra spaces, unneeded arrays and add missing newlinesXhmikosR1-7/+8
2021-12-01tests: tweak Jasmine's matchers usageXhmikosR1-36/+36
Use: * toBeNull * toEqual * toBeTrue * toBeFalse * toHaveSize * toHaveClass
2021-11-25Clean tooltip component unneeded functionality (#32692)GeoSot1-6/+6
2021-11-25Add a template factory helper to handle all template cases (#34519)GeoSot1-27/+40
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-2/+2
* 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-3/+3
* unicorn/prefer-dom-node-append * unicorn/prefer-dom-node-remove
2021-06-03Add `getOrCreateInstance` method in base-component (#33276)GeoSot1-1/+55
Co-authored-by: Rohit Sharma <[email protected]> Co-authored-by: XhmikosR <[email protected]>
2021-06-03Fix handling of transitionend events dispatched by nested elements(#33845)alpadev1-1/+1
Fix handling of transitionend events dispatched by nested elements Properly handle events from nested elements Change `emulateTransitionEnd` to `executeAfterTransition` &&
2021-05-20Allow use of `dispose/hide` methods on Tooltip & Popover from ↵GeoSot1-15/+0
jQueryInterface, when component does not exists. (#33371)
2021-05-12Popover/Tooltip: streamline config property to start with underscore (#33381)GeoSot1-3/+3
2021-05-11Remove potential false positive assertions (#33288)Ben Lertlumprasertkul1-16/+16
* 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-04-11Update tests to check for `noop` to be removedRohit Sharma1-2/+2
2021-03-16only trigger tooltip inserted event on true dom insertRyan Berliner1-0/+62
2021-03-16prevent quick interactions from misplacing tooltipsRyan Berliner1-2/+5
2021-03-16prevent tooltip from being deleted on quick re-activationsRyan Berliner1-0/+29
2021-02-22Allow constructors to accept a CSS selector (#32245)Rohit Sharma1-0/+11
Co-authored-by: XhmikosR <[email protected]> Co-authored-by: Mark Otto <[email protected]>
2021-02-12Fix event handler removal in dropdown/carousel dispose (#33000)Kyle Tsang1-0/+13
* Fix event handler removal in carousel dispose * Fix event handler removal in dropdown dispose * Test event handlers in scrollspy dispose * Test event handlers in toast dispose * Test event handlers in tooltip dispose Co-authored-by: XhmikosR <[email protected]> Co-authored-by: Rohit Sharma <[email protected]>
2021-02-09Add function type for `popperConfig` option (#32882)Rohit Sharma1-0/+15
* Add function type for `popperConfig` option * Update .bundlewatch.config.json * copy edits Co-authored-by: XhmikosR <[email protected]> Co-authored-by: Mark Otto <[email protected]>
2021-01-28Restore `offset` option for tooltip/popover componentsRohit Sharma1-0/+35
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-12-14Tooltip - Add missing callback in async spec (#32465)Rohit Sharma1-1/+2
2020-12-10Tooltip - check if tip and its parent node exist in dispose method (#32420)Rohit Sharma1-0/+18
2020-12-06Update to popper.js v2.xJohann-S1-21/+3
2020-12-04feat(RTL): implement RTLGaël Poupard1-0/+34
Using RTLCSS directives, renaming things to use logical names and following best practices.
2020-11-30Add testsXhmikosR1-0/+53
2020-11-29Switch to Jasmine's `toBeInstanceOf` matcherXhmikosR1-1/+1
2020-11-29create a base componentJohann-S1-0/+20