Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-05-31JS: tests fixes & standardization of spies usage (#36398)Louis-Maxime Piton
* Fix carousel spec typo * Change carousel test name in align with testing method * Make the spies declarations the same everywhere
2022-02-19tests: revisit all tests using Promise.reject instead of throwing an error ↵GeoSot
(#35765)
2022-01-30tests: replace 'done' callback with 'Promise' to fix deprecation errors (#35659)GeoSot
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-01tests: tweak Jasmine's matchers usageXhmikosR
Use: * toBeNull * toEqual * toBeTrue * toBeFalse * toHaveSize * toHaveClass
2021-11-29Alert: add a couple more tests (#35419)GeoSot
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2021-10-08tests: minor cleanup (#35138)XhmikosR
* tests: minor cleanup * tests: use the util noop function
2021-06-28Changes to Alert component to match the others (#33402)GeoSot
Alert.js: Refactor code to match the other components * Use this._element * Remove handleDismiss method and keep its functionality on event * Change JqueryInterface to be more generic * Correct docs to be aligned with code, and add undocumented functionality * Update alerts.md Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2021-06-03Add `getOrCreateInstance` method in base-component (#33276)GeoSot
Co-authored-by: Rohit Sharma <rohit2sharma95@gmail.com> Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2021-05-11Remove potential false positive assertions (#33288)Ben Lertlumprasertkul
* 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 <xhmikosr@gmail.com>
2021-02-22Allow constructors to accept a CSS selector (#32245)Rohit Sharma
Co-authored-by: XhmikosR <xhmikosr@gmail.com> Co-authored-by: Mark Otto <otto@github.com>
2021-02-16Add tests for `DATA_KEY` (#33090)GeoSot
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2020-11-29Switch to Jasmine's `toBeInstanceOf` matcherXhmikosR
2020-11-29create a base componentJohann-S
2020-11-14Add `bs` in data attributesRohit Sharma
- Add `bs` in data APIs everywhere - Update unit tests
2020-03-25fix: remove make array util function (#30430)Johann-S
2020-02-10Corrected grammatical error in test descriptions (#30150)yonikohen
"without instantiate it" should be "without instantiating it"
2019-10-09Rename "js/tests/units" to "js/tests/unit". (#29503)XhmikosR