diff --git a/test/specs/dom_components/index.ts b/test/specs/dom_components/index.ts index a7108d0fe..975b36d91 100644 --- a/test/specs/dom_components/index.ts +++ b/test/specs/dom_components/index.ts @@ -1,4 +1,3 @@ -import DomComponents from '../../../src/dom_components'; import Components from '../../../src/dom_components/model/Components'; import EditorModel from '../../../src/editor/model/Editor'; import Editor from '../../../src/editor'; @@ -8,7 +7,7 @@ import { Component } from '../../../src'; describe('DOM Components', () => { describe('Main', () => { var em: EditorModel; - var obj: DomComponents; + var obj: EditorModel['Components']; var config: any; var storagMock = utils.storageMock(); var editorModel = { @@ -63,10 +62,6 @@ describe('DOM Components', () => { em.destroy(); }); - test('Object exists', () => { - expect(DomComponents).toBeTruthy(); - }); - test.skip('Store and load data', () => { setSmConfig(); setEm(); @@ -147,7 +142,6 @@ describe('DOM Components', () => { }); test('Add new component type with simple model', () => { - obj = em.get('DomComponents'); const id = 'test-type'; const testProp = 'testValue'; const initialTypes = obj.componentTypes.length; @@ -166,7 +160,6 @@ describe('DOM Components', () => { }); test('Add new component type with custom isComponent', () => { - obj = em.get('DomComponents'); const id = 'test-type'; const testProp = 'testValue'; obj.addType(id, { @@ -182,7 +175,6 @@ describe('DOM Components', () => { }); test('Extend component type with custom model and view', () => { - obj = em.get('DomComponents'); const id = 'image'; const testProp = 'testValue'; const initialTypes = obj.getTypes().length; @@ -207,7 +199,6 @@ describe('DOM Components', () => { }); test('Add new component type by extending another one, without isComponent', () => { - obj = em.get('DomComponents'); const id = 'test-type'; const testProp = 'testValue'; obj.addType(id, { @@ -228,7 +219,6 @@ describe('DOM Components', () => { }); test('Add new component type by extending another one, with custom isComponent', () => { - obj = em.get('DomComponents'); const id = 'test-type'; const testProp = 'testValue'; obj.addType(id, {