8
0
فهرست منبع

Update tests' descriptions,

as suggested at https://github.com/ckeditor/ckeditor5/pull/7346#pullrequestreview-423414484.
Tomek Wytrębowicz 5 سال پیش
والد
کامیت
0624408efc

+ 1 - 1
packages/ckeditor5-autoformat/tests/autoformat.js

@@ -410,7 +410,7 @@ describe( 'Autoformat', () => {
 			expect( getData( model ) ).to.equal( '<paragraph>**foobar**[]</paragraph>' );
 			expect( getData( model ) ).to.equal( '<paragraph>**foobar**[]</paragraph>' );
 		} );
 		} );
 
 
-		it( 'should not format if the plugin is not enabled', () => {
+		it( 'should not format if the plugin is disabled', () => {
 			editor.plugins.get( 'Autoformat' ).forceDisabled( 'Test' );
 			editor.plugins.get( 'Autoformat' ).forceDisabled( 'Test' );
 
 
 			setData( model, '<paragraph>**foobar*[]</paragraph>' );
 			setData( model, '<paragraph>**foobar*[]</paragraph>' );

+ 1 - 1
packages/ckeditor5-autoformat/tests/blockautoformatediting.js

@@ -101,7 +101,7 @@ describe( 'blockAutoformatEditing', () => {
 			sinon.assert.calledOnce( spy );
 			sinon.assert.calledOnce( spy );
 		} );
 		} );
 
 
-		it( 'should not call callback when the pattern is matched and plugin is disabled', () => {
+		it( 'should not call the callback when the pattern is matched but the plugin is disabled', () => {
 			const callbackSpy = testUtils.sinon.spy().named( 'callback' );
 			const callbackSpy = testUtils.sinon.spy().named( 'callback' );
 			blockAutoformatEditing( editor, plugin, /^[*]\s$/, callbackSpy );
 			blockAutoformatEditing( editor, plugin, /^[*]\s$/, callbackSpy );
 
 

+ 4 - 4
packages/ckeditor5-autoformat/tests/inlineautoformatediting.js

@@ -34,7 +34,7 @@ describe( 'inlineAutoformatEditing', () => {
 	} );
 	} );
 
 
 	describe( 'regExp', () => {
 	describe( 'regExp', () => {
-		it( 'should not call formatCallback if there are less than 3 capture groups', () => {
+		it( 'should not call the formatCallback if there are less than 3 capture groups', () => {
 			inlineAutoformatEditing( editor, plugin, /(\*)(.+?)\*/g, formatSpy );
 			inlineAutoformatEditing( editor, plugin, /(\*)(.+?)\*/g, formatSpy );
 
 
 			setData( model, '<paragraph>*foobar[]</paragraph>' );
 			setData( model, '<paragraph>*foobar[]</paragraph>' );
@@ -45,7 +45,7 @@ describe( 'inlineAutoformatEditing', () => {
 			sinon.assert.notCalled( formatSpy );
 			sinon.assert.notCalled( formatSpy );
 		} );
 		} );
 
 
-		it( 'should call formatCallback when the pattern is matched', () => {
+		it( 'should call the formatCallback when the pattern is matched', () => {
 			inlineAutoformatEditing( editor, plugin, /(\*)(.+?)(\*)/g, formatSpy );
 			inlineAutoformatEditing( editor, plugin, /(\*)(.+?)(\*)/g, formatSpy );
 
 
 			setData( model, '<paragraph>*foobar[]</paragraph>' );
 			setData( model, '<paragraph>*foobar[]</paragraph>' );
@@ -56,7 +56,7 @@ describe( 'inlineAutoformatEditing', () => {
 			sinon.assert.calledOnce( formatSpy );
 			sinon.assert.calledOnce( formatSpy );
 		} );
 		} );
 
 
-		it( 'should not call formatCallback if selection is not collapsed', () => {
+		it( 'should not call the formatCallback if the selection is not collapsed', () => {
 			inlineAutoformatEditing( editor, plugin, /(\*)(.+?)\*/g, formatSpy );
 			inlineAutoformatEditing( editor, plugin, /(\*)(.+?)\*/g, formatSpy );
 
 
 			setData( model, '<paragraph>*foob[ar]</paragraph>' );
 			setData( model, '<paragraph>*foob[ar]</paragraph>' );
@@ -117,7 +117,7 @@ describe( 'inlineAutoformatEditing', () => {
 			sinon.assert.notCalled( formatSpy );
 			sinon.assert.notCalled( formatSpy );
 		} );
 		} );
 
 
-		it( 'should not run formatCallback when the pattern is matched and plugin is disabled', () => {
+		it( 'should not run the formatCallback when the pattern is matched but the plugin is disabled', () => {
 			inlineAutoformatEditing( editor, plugin, /(\*)(.+?)(\*)/g, formatSpy );
 			inlineAutoformatEditing( editor, plugin, /(\*)(.+?)(\*)/g, formatSpy );
 
 
 			plugin.isEnabled = false;
 			plugin.isEnabled = false;