8
0
Pārlūkot izejas kodu

Minor fixes in comments.

Grzegorz Pabian 10 gadi atpakaļ
vecāks
revīzija
719eb8264a

+ 4 - 4
packages/ckeditor5-utils/tests/mvc/collection/collection.js

@@ -10,7 +10,7 @@
 var modules = bender.amd.require( 'mvc/collection', 'mvc/model' );
 
 describe( 'add', function() {
-	it( 'should change length and enable get', function() {
+	it( 'should change the length and enable get', function() {
 		var Model = modules[ 'mvc/model' ];
 
 		var box = getCollection();
@@ -38,7 +38,7 @@ describe( 'add', function() {
 } );
 
 describe( 'get', function() {
-	it( 'should throw error on invalid index', function() {
+	it( 'should throw an error on invalid index', function() {
 		var box = getCollection();
 		box.add( getItem() );
 
@@ -95,7 +95,7 @@ describe( 'remove', function() {
 		sinon.assert.calledWithExactly( spy, sinon.match.has( 'source', box ), item2 );
 	} );
 
-	it( 'should throw error on invalid index', function() {
+	it( 'should throw an error on invalid index', function() {
 		var box = getCollection();
 		box.add( getItem() );
 
@@ -104,7 +104,7 @@ describe( 'remove', function() {
 		} ).to.throw( Error, 'Index not found' );
 	} );
 
-	it( 'should throw error on invalid model', function() {
+	it( 'should throw an error on invalid model', function() {
 		var box = getCollection();
 		box.add( getItem() );
 

+ 4 - 4
packages/ckeditor5-utils/tests/mvc/model/model.js

@@ -63,7 +63,7 @@ describe( 'Model', function() {
 			} );
 		} );
 
-		it( 'should work when passing key/value', function() {
+		it( 'should work when passing a key/value pair', function() {
 			car.set( 'color', 'blue' );
 			car.set( 'wheels', 4 );
 
@@ -74,7 +74,7 @@ describe( 'Model', function() {
 			} );
 		} );
 
-		it( 'should fire "change"', function() {
+		it( 'should fire the "change" event', function() {
 			var EventInfo = modules.eventinfo;
 
 			var spy = sinon.spy();
@@ -113,14 +113,14 @@ describe( 'Model', function() {
 			sinon.assert.calledWithExactly( spyWheels, sinon.match.instanceOf( EventInfo ), 4, sinon.match.typeOf( 'undefined' ) );
 		} );
 
-		it( 'should not fire "change" for same attribute value', function() {
+		it( 'should not fire the "change" event for the same attribute value', function() {
 			var spy = sinon.spy();
 			var spyColor = sinon.spy();
 
 			car.on( 'change', spy );
 			car.on( 'change:color', spyColor );
 
-			// Set property in all possible ways.
+			// Set the "color" property in all possible ways.
 			car.color = 'red';
 			car.set( 'color', 'red' );
 			car.set( { color: 'red' } );