Przeglądaj źródła

Simplify unit test.

Mateusz Samsel 6 lat temu
rodzic
commit
044fb1da7c
1 zmienionych plików z 7 dodań i 15 usunięć
  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();
+					} );
 			} );
 		} );
 	} );