]> git.ipfire.org Git - thirdparty/bootstrap.git/commit
Throw a `TypeError` instead of the generic `Error` (#32585)
authorRohit Sharma <rohit2sharma95@gmail.com>
Wed, 13 Jan 2021 20:13:30 +0000 (01:43 +0530)
committerGitHub <noreply@github.com>
Wed, 13 Jan 2021 20:13:30 +0000 (22:13 +0200)
commitc9cd741aff6acedaedfd2cf96df06a8b46b4826a
tree01d31a107078fe4f30879e162df8e45336d5f4ef
parente34481b6eb5c7b9db35911f428cb96af6947741e
Throw a `TypeError` instead of the generic `Error` (#32585)

* 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 <xhmikosr@gmail.com>
12 files changed:
js/src/dropdown.js
js/src/util/index.js
js/tests/unit/carousel.spec.js
js/tests/unit/collapse.spec.js
js/tests/unit/dropdown.spec.js
js/tests/unit/modal.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/index.spec.js