Przeglądaj źródła

Destroy text transformation plugin after each #plugin tests

panr 6 lat temu
rodzic
commit
5f1dd4bad3

+ 4 - 0
packages/ckeditor5-typing/tests/texttransformation.js

@@ -50,6 +50,10 @@ describe( 'Text transformation feature', () => {
 			} );
 			} );
 		} );
 		} );
 
 
+		afterEach( () => {
+			plugin.destroy();
+		} );
+
 		it( 'should be enabled after initialization', () => {
 		it( 'should be enabled after initialization', () => {
 			plugin.init();
 			plugin.init();