8
0
Просмотр исходного кода

Tests: Remove old EmitterMixin tests for context option.

Maciej Gołaszewski 8 лет назад
Родитель
Сommit
0d33222893
1 измененных файлов с 0 добавлено и 20 удалено
  1. 0 20
      packages/ckeditor5-utils/tests/emittermixin.js

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

@@ -60,16 +60,6 @@ describe( 'EmitterMixin', () => {
 			sinon.assert.calledWithExactly( spy2, sinon.match.instanceOf( EventInfo ), 1, 'b', true );
 		} );
 
-		it( 'should pass proper context to callbacks', () => {
-			const spy = sinon.spy();
-
-			emitter.on( 'test', spy );
-
-			emitter.fire( 'test' );
-
-			sinon.assert.calledOn( spy, emitter );
-		} );
-
 		it( 'should fire the right event', () => {
 			const spy1 = sinon.spy();
 			const spy2 = sinon.spy();
@@ -307,16 +297,6 @@ describe( 'EmitterMixin', () => {
 			sinon.assert.calledTwice( spy3 );
 		} );
 
-		it( 'should have proper scope', () => {
-			const spy = sinon.spy();
-
-			emitter.once( 'test', spy );
-
-			emitter.fire( 'test' );
-
-			sinon.assert.calledOn( spy, emitter );
-		} );
-
 		it( 'should have proper arguments', () => {
 			const spy = sinon.spy();