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();
blocksVisible.reset();
categories.reset();
blocksView.remove();
blocksView && blocksView.remove();
[blocks, blocksVisible, categories, blocksView].forEach(i => (i = null));
c = {};
}

5
test/specs/editor/index.js

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

Loading…
Cancel
Save