@ -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 = {};
}
@ -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();
});