]> git.ipfire.org Git - thirdparty/bootstrap.git/commit
tests: replace 'done' callback with 'Promise' to fix deprecation errors (#35659)
authorGeoSot <geo.sotis@gmail.com>
Sun, 30 Jan 2022 12:30:04 +0000 (14:30 +0200)
committerGitHub <noreply@github.com>
Sun, 30 Jan 2022 12:30:04 +0000 (14:30 +0200)
commitaa650f0f1e30279f0868433a4afab9c3efa93b2c
tree88cf537f2e7b6613bc2e53d4e38ca93798786d07
parentd09281705988690b63a5364548447c603cb557fd
tests: replace 'done' callback with 'Promise' to fix deprecation errors (#35659)

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.
20 files changed:
js/tests/README.md
js/tests/unit/alert.spec.js
js/tests/unit/carousel.spec.js
js/tests/unit/collapse.spec.js
js/tests/unit/dom/event-handler.spec.js
js/tests/unit/dom/manipulator.spec.js
js/tests/unit/dropdown.spec.js
js/tests/unit/jquery.spec.js
js/tests/unit/modal.spec.js
js/tests/unit/offcanvas.spec.js
js/tests/unit/popover.spec.js
js/tests/unit/scrollspy.spec.js
js/tests/unit/tab.spec.js
js/tests/unit/toast.spec.js
js/tests/unit/tooltip.spec.js
js/tests/unit/util/backdrop.spec.js
js/tests/unit/util/focustrap.spec.js
js/tests/unit/util/index.spec.js
js/tests/unit/util/scrollbar.spec.js
js/tests/unit/util/swipe.spec.js