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
diff options
context:
space:
mode:
authorGeoSot <geo.sotis@gmail.com>2021-02-16 09:58:08 +0300
committerGitHub <noreply@github.com>2021-02-16 09:58:08 +0300
commit3602828a9001298fcfb6638041fc300f9e677bcb (patch)
treebba32ebd7deb762c15ec36d15e4257d397874516 /js/tests/unit/scrollspy.spec.js
parent4d19e0e8a49e887f007a1e5a147d900d15f61a9c (diff)
Add tests for `DATA_KEY` (#33090)
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
Diffstat (limited to 'js/tests/unit/scrollspy.spec.js')
-rw-r--r--js/tests/unit/scrollspy.spec.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/js/tests/unit/scrollspy.spec.js b/js/tests/unit/scrollspy.spec.js
index 917593f398..a00da485f8 100644
--- a/js/tests/unit/scrollspy.spec.js
+++ b/js/tests/unit/scrollspy.spec.js
@@ -47,6 +47,12 @@ describe('ScrollSpy', () => {
})
})
+ describe('DATA_KEY', () => {
+ it('should return plugin data key', () => {
+ expect(ScrollSpy.DATA_KEY).toEqual('bs.scrollspy')
+ })
+ })
+
describe('constructor', () => {
it('should generate an id when there is not one', () => {
fixtureEl.innerHTML = [