Bladeren bron

Fixed typos and descriptions of tests.

fredck 10 jaren geleden
bovenliggende
commit
8913243900

+ 6 - 6
packages/ckeditor5-utils/tests/emitter/emitter.js

@@ -227,7 +227,7 @@ describe( 'once', function() {
 } );
 
 describe( 'off', function() {
-	it( 'should get callbacks off', function() {
+	it( 'should get callbacks off()', function() {
 		var spy1 = sinon.spy();
 		var spy2 = sinon.spy();
 		var spy3 = sinon.spy();
@@ -248,7 +248,7 @@ describe( 'off', function() {
 		sinon.assert.calledThrice( spy3 );
 	} );
 
-	it( 'should no fail with unknown events', function() {
+	it( 'should not fail with unknown events', function() {
 		emitter.off( 'test', function() {} );
 	} );
 } );
@@ -270,7 +270,7 @@ describe( 'listenTo', function() {
 describe( 'stopListening', function() {
 	beforeEach( refreshListener );
 
-	it( 'should stop listening callback on event', function() {
+	it( 'should stop listening to a specific event callback', function() {
 		var spy1 = sinon.spy();
 		var spy2 = sinon.spy();
 
@@ -289,7 +289,7 @@ describe( 'stopListening', function() {
 		sinon.assert.calledTwice( spy2 );
 	} );
 
-	it( 'should stop listening event', function() {
+	it( 'should stop listening to an specific event', function() {
 		var spy1a = sinon.spy();
 		var spy1b = sinon.spy();
 		var spy2 = sinon.spy();
@@ -311,7 +311,7 @@ describe( 'stopListening', function() {
 		sinon.assert.calledTwice( spy2 );
 	} );
 
-	it( 'should stop listening all events for emitter', function() {
+	it( 'should stop listening to all events from a specific emitter', function() {
 		var spy1 = sinon.spy();
 		var spy2 = sinon.spy();
 
@@ -330,7 +330,7 @@ describe( 'stopListening', function() {
 		sinon.assert.calledOnce( spy2 );
 	} );
 
-	it( 'should stop listening everything', function() {
+	it( 'should stop listening to everything', function() {
 		var spy1 = sinon.spy();
 		var spy2 = sinon.spy();
 

+ 1 - 1
packages/ckeditor5-utils/tests/eventinfo/eventinfo.js

@@ -20,7 +20,7 @@ describe( 'EventInfo', function() {
 		expect( event.off.called ).to.not.be.true();
 	} );
 
-	it( 'should have cancel() and off() marked', function() {
+	it( 'should have stop() and off() marked', function() {
 		var EventInfo = modules.eventinfo;
 
 		var event = new EventInfo( 'test' );