diff options
Diffstat (limited to 'js/tests/unit/base-component.spec.js')
| -rw-r--r-- | js/tests/unit/base-component.spec.js | 3 |
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() |
