aboutsummaryrefslogtreecommitdiff
path: root/js/tests/unit/button.spec.js
AgeCommit message (Collapse)AuthorFilesLines
2023-03-29Tweak and re-organize ESLint config (#38369)XhmikosR1-2/+2
* 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-2/+2
* Fix carousel spec typo * Change carousel test name in align with testing method * Make the spies declarations the same everywhere
2021-12-01tests: tweak Jasmine's matchers usageXhmikosR1-10/+10
Use: * toBeNull * toEqual * toBeTrue * toBeFalse * toHaveSize * toHaveClass
2021-10-08tests: minor cleanup (#35138)XhmikosR1-7/+1
* tests: minor cleanup * tests: use the util noop function
2021-06-03Add `getOrCreateInstance` method in base-component (#33276)GeoSot1-0/+22
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-02-22Allow constructors to accept a CSS selector (#32245)Rohit Sharma1-0/+10
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]>
2020-11-29Switch to Jasmine's `toBeInstanceOf` matcherXhmikosR1-1/+1
2020-11-29create a base componentJohann-S1-0/+20
2020-11-14Add `bs` in data attributesRohit Sharma1-7/+7
- Add `bs` in data APIs everywhere - Update unit tests
2020-06-15Remove checkbox/radio toggle from button plugin in favor of a CSS only solutionMartijn Cuppens1-161/+0
2020-05-06tests: streamline HTML end tags (#30648)XhmikosR1-5/+5
2019-10-09Rename "js/tests/units" to "js/tests/unit". (#29503)XhmikosR1-0/+292