aboutsummaryrefslogtreecommitdiff
path: root/js/tests/unit/dropdown.spec.js
diff options
context:
space:
mode:
authorGeoSot <[email protected]>2021-02-16 08:58:08 +0200
committerGitHub <[email protected]>2021-02-16 08:58:08 +0200
commit3602828a9001298fcfb6638041fc300f9e677bcb (patch)
treebba32ebd7deb762c15ec36d15e4257d397874516 /js/tests/unit/dropdown.spec.js
parent4d19e0e8a49e887f007a1e5a147d900d15f61a9c (diff)
downloadbootstrap-3602828a9001298fcfb6638041fc300f9e677bcb.tar.xz
bootstrap-3602828a9001298fcfb6638041fc300f9e677bcb.zip
Add tests for `DATA_KEY` (#33090)
Co-authored-by: XhmikosR <[email protected]>
Diffstat (limited to 'js/tests/unit/dropdown.spec.js')
-rw-r--r--js/tests/unit/dropdown.spec.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/js/tests/unit/dropdown.spec.js b/js/tests/unit/dropdown.spec.js
index 04c35059e..658cb65b0 100644
--- a/js/tests/unit/dropdown.spec.js
+++ b/js/tests/unit/dropdown.spec.js
@@ -33,6 +33,12 @@ describe('Dropdown', () => {
})
})
+ describe('DATA_KEY', () => {
+ it('should return plugin data key', () => {
+ expect(Dropdown.DATA_KEY).toEqual('bs.dropdown')
+ })
+ })
+
describe('constructor', () => {
it('should add a listener on trigger which do not have data-bs-toggle="dropdown"', () => {
fixtureEl.innerHTML = [