diff --git a/tests/decouplededitor.js b/tests/decouplededitor.js index 9752773..1c9f21b 100644 --- a/tests/decouplededitor.js +++ b/tests/decouplededitor.js @@ -29,11 +29,6 @@ describe( 'DecoupledEditor', () => { describe( 'constructor()', () => { beforeEach( () => { editor = new DecoupledEditor(); - editor.ui.init(); - } ); - - afterEach( () => { - return editor.destroy(); } ); it( 'uses HTMLDataProcessor', () => { @@ -50,8 +45,12 @@ describe( 'DecoupledEditor', () => { describe( 'ui', () => { it( 'is created', () => { + editor.ui.init(); + expect( editor.ui ).to.be.instanceof( DecoupledEditorUI ); expect( editor.ui.view ).to.be.instanceof( DecoupledEditorUIView ); + + editor.ui.destroy(); } ); } ); } );