Преглед изворни кода

Fix test block description from 'plugin' to '#isEnabled' and remove an unnecessary test for checking watchers after initialization

panr пре 6 година
родитељ
комит
04ec6a2a86
1 измењених фајлова са 1 додато и 11 уклоњено
  1. 1 11
      packages/ckeditor5-typing/tests/texttransformation.js

+ 1 - 11
packages/ckeditor5-typing/tests/texttransformation.js

@@ -41,7 +41,7 @@ describe( 'Text transformation feature', () => {
 		} );
 	} );
 
-	describe( 'plugin', () => {
+	describe( '#isEnabled', () => {
 		let plugin;
 
 		beforeEach( () => {
@@ -55,19 +55,9 @@ describe( 'Text transformation feature', () => {
 		} );
 
 		it( 'should be enabled after initialization', () => {
-			plugin.init();
-
 			expect( plugin.isEnabled ).to.be.true;
 		} );
 
-		it( 'should initialize watchers after initialization', () => {
-			const enableWatchersSpy = sinon.spy( plugin, '_enableTransformationWatchers' );
-
-			plugin.init();
-
-			sinon.assert.calledOnce( enableWatchersSpy );
-		} );
-
 		it( 'should have active watchers when is enabled', () => {
 			const enableWatchersSpy = sinon.spy( plugin, '_enableTransformationWatchers' );