Ver código fonte

Tests: Remove failing tests as not a part of an API yet.

Maciej Gołaszewski 8 anos atrás
pai
commit
8376b2f1b7
1 arquivos alterados com 0 adições e 24 exclusões
  1. 0 24
      packages/ckeditor5-utils/tests/emittermixin.js

+ 0 - 24
packages/ckeditor5-utils/tests/emittermixin.js

@@ -314,23 +314,6 @@ describe( 'EmitterMixin', () => {
 			sinon.assert.calledTwice( spy3 );
 		} );
 
-		it( 'should be called just once for namespaced event when calling general event', () => {
-			const spy1 = sinon.spy();
-			const spy2 = sinon.spy();
-			const spy3 = sinon.spy();
-
-			emitter.on( 'foo', spy1 );
-			emitter.once( 'foo', spy2 );
-			emitter.on( 'foo', spy3 );
-
-			emitter.fire( 'foo:bar' );
-			emitter.fire( 'foo:bar' );
-
-			sinon.assert.calledTwice( spy1 );
-			sinon.assert.calledOnce( spy2 );
-			sinon.assert.calledTwice( spy3 );
-		} );
-
 		it( 'should have proper arguments', () => {
 			const spy = sinon.spy();
 
@@ -511,13 +494,6 @@ describe( 'EmitterMixin', () => {
 			sinon.assert.calledTwice( spyBar );
 			sinon.assert.calledOnce( spyBaz );
 		} );
-
-		it( 'should not fail on empty callback', () => {
-			listener.listenTo( emitter, 'foo' );
-
-			emitter.fire( 'foo' );
-			emitter.fire( 'foo:bar' );
-		} );
 	} );
 
 	describe( 'stopListening', () => {