aboutsummaryrefslogtreecommitdiff
path: root/js/tests/unit/toast.spec.js
AgeCommit message (Collapse)AuthorFilesLines
2021-07-28Use a streamlined way to trigger component dismiss (#34170)GeoSot1-4/+0
* use a streamlined way to trigger component dismiss * add documentation Co-authored-by: XhmikosR <[email protected]>
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-11Remove potential false positive assertions (#33288)Ben Lertlumprasertkul1-3/+3
* 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-05-11Prevent toast autohiding if focusing or hovering (#33221)Ryan Berliner1-1/+177
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-16Add tests for `DATA_KEY` (#33090)GeoSot1-0/+6
Co-authored-by: XhmikosR <[email protected]>
2021-02-12Fix event handler removal in dropdown/carousel dispose (#33000)Kyle Tsang1-0/+5
* 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-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-04feat(RTL): implement RTLGaƫl Poupard1-2/+2
Using RTLCSS directives, renaming things to use logical names and following best practices.
2020-11-29Switch to Jasmine's `toBeInstanceOf` matcherXhmikosR1-1/+1
2020-11-29create a base componentJohann-S1-0/+1
2020-11-14Fix `.close` instances (#32152)XhmikosR1-7/+3
2020-11-14Add `bs` in data attributesRohit Sharma1-11/+11
- Add `bs` in data APIs everywhere - Update unit tests
2020-10-31toast.spec.js: fix typo (#32026)XhmikosR1-2/+2
2020-07-11Clear timeout before showing the toast (#31155)Rohit Sharma1-0/+27
* clear timeout before showing the toast * Add unit test * Remove the check for timeout * Check for clearTimeout to have been called Co-authored-by: XhmikosR <[email protected]>
2019-10-09Rename "js/tests/units" to "js/tests/unit". (#29503)XhmikosR1-0/+374