Explorar el Código

Simplify unit test.

Mateusz Samsel hace 6 años
padre
commit
044fb1da7c
Se han modificado 1 ficheros con 7 adiciones y 15 borrados
  1. 7 15
      packages/ckeditor5-word-count/tests/wordcount.js

+ 7 - 15
packages/ckeditor5-word-count/tests/wordcount.js

@@ -159,21 +159,13 @@ describe( 'WordCount', () => {
 					.catch( done );
 			} );
 
-			describe( 'container not created', () => {
-				let editor;
-
-				beforeEach( () => {
-					return VirtualTestEditor.create( {
-						plugins: [ WordCount, Paragraph ]
-					} )
-						.then( _editor => {
-							editor = _editor;
-						} );
-				} );
-
-				it( 'should not throw an error', () => {
-					return editor.destroy();
-				} );
+			it( 'should not throw an error if container is not specified', () => {
+				return VirtualTestEditor.create( {
+					plugins: [ WordCount, Paragraph ]
+				} )
+					.then( editor => {
+						return editor.destroy();
+					} );
 			} );
 		} );
 	} );