8
0
Quellcode durchsuchen

Fixed failing tests.

Oskar Wróbel vor 7 Jahren
Ursprung
Commit
f34c575e63
1 geänderte Dateien mit 4 neuen und 5 gelöschten Zeilen
  1. 4 5
      packages/ckeditor5-editor-decoupled/tests/decouplededitor.js

+ 4 - 5
packages/ckeditor5-editor-decoupled/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();
 			} );
 		} );
 	} );