Browse Source

Fix Editor tests

pull/3167/head
Artur Arseniev 6 years ago
parent
commit
9b4120e526
  1. 2
      src/block_manager/index.js
  2. 5
      test/specs/editor/index.js

2
src/block_manager/index.js

@ -262,7 +262,7 @@ export default () => {
blocks.stopListening(); blocks.stopListening();
blocksVisible.reset(); blocksVisible.reset();
categories.reset(); categories.reset();
blocksView.remove(); blocksView && blocksView.remove();
[blocks, blocksVisible, categories, blocksView].forEach(i => (i = null)); [blocks, blocksVisible, categories, blocksView].forEach(i => (i = null));
c = {}; c = {};
} }

5
test/specs/editor/index.js

@ -3,10 +3,11 @@ import Editor from 'editor';
const { keys } = Object; const { keys } = Object;
const initComps = 1; const initComps = 1;
describe('Editor', () => { describe.only('Editor', () => {
const editor = new Editor(); let editor;
beforeEach(() => { beforeEach(() => {
editor = new Editor();
editor.init(); editor.init();
}); });

Loading…
Cancel
Save