Browse Source

Update dom_components test file

pull/4830/head
Artur Arseniev 4 years ago
parent
commit
87b096ca99
  1. 9
      test/specs/dom_components/index.ts

9
test/specs/dom_components/index.js → test/specs/dom_components/index.ts

@ -1,6 +1,6 @@
import DomComponents from 'dom_components'; import DomComponents from '../../../src/dom_components';
import Components from 'dom_components/model/Components'; import Components from '../../../src/dom_components/model/Components';
import Editor from 'editor/model/Editor'; import Editor from '../../../src/editor/model/Editor';
import utils from './../../test_utils.js'; import utils from './../../test_utils.js';
describe('DOM Components', () => { describe('DOM Components', () => {
@ -46,7 +46,7 @@ describe('DOM Components', () => {
beforeEach(() => { beforeEach(() => {
em = new Editor({ em = new Editor({
avoidInlineStyle: 1, avoidInlineStyle: true,
}); });
em.loadOnStart(); em.loadOnStart();
config = { config = {
@ -67,6 +67,7 @@ describe('DOM Components', () => {
test.skip('Store and load data', () => { test.skip('Store and load data', () => {
setSmConfig(); setSmConfig();
setEm(); setEm();
// @ts-ignore
const comps = new Components({}, {}); const comps = new Components({}, {});
obj.getWrapper().set('components', comps); obj.getWrapper().set('components', comps);
obj.store(); obj.store();
Loading…
Cancel
Save