aboutsummaryrefslogtreecommitdiff
path: root/js/tests/unit/base-component.spec.js
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2021-09-03 17:43:05 +0300
committerXhmikosR <[email protected]>2021-09-03 17:44:35 +0300
commit53c35886753666a6050907e1dea7903442ed7c66 (patch)
tree9a6462b0117c3e2c684f74f69b02b426ffe4dd87 /js/tests/unit/base-component.spec.js
parentde9715d4a92fb79874b30c0c38b14a851d0fe1ac (diff)
downloadbootstrap-main-xmr-eslint-plugin-jasmine.tar.xz
bootstrap-main-xmr-eslint-plugin-jasmine.zip
Diffstat (limited to 'js/tests/unit/base-component.spec.js')
-rw-r--r--js/tests/unit/base-component.spec.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/js/tests/unit/base-component.spec.js b/js/tests/unit/base-component.spec.js
index b8ec83f12..fff7cbd1e 100644
--- a/js/tests/unit/base-component.spec.js
+++ b/js/tests/unit/base-component.spec.js
@@ -59,6 +59,7 @@ describe('Base Component', () => {
})
})
})
+
describe('Public Methods', () => {
describe('constructor', () => {
it('should accept element, either passed as a CSS selector or DOM element', () => {
@@ -75,6 +76,7 @@ describe('Base Component', () => {
expect(selectorInstance._element).toEqual(fixtureEl.querySelector('#bar'))
})
})
+
describe('dispose', () => {
it('should dispose an component', () => {
createInstance()
@@ -126,6 +128,7 @@ describe('Base Component', () => {
expect(DummyClass.getInstance(div)).toEqual(null)
})
})
+
describe('getOrCreateInstance', () => {
it('should return an instance', () => {
createInstance()