|
|
@@ -185,7 +185,7 @@ describe( 'EmitterMixin', () => {
|
|
|
} );
|
|
|
|
|
|
it( 'is undefined if none of the listeners modified EventInfo#return', () => {
|
|
|
- emitter.on( 'foo', () => { } );
|
|
|
+ emitter.on( 'foo', () => {} );
|
|
|
|
|
|
expect( emitter.fire( 'foo' ) ).to.be.undefined;
|
|
|
} );
|
|
|
@@ -416,8 +416,8 @@ describe( 'EmitterMixin', () => {
|
|
|
} );
|
|
|
|
|
|
it( 'should not fail with unknown events', () => {
|
|
|
- emitter.off( 'foo', () => { } );
|
|
|
- emitter.off( 'foo:bar', () => { } );
|
|
|
+ emitter.off( 'foo', () => {} );
|
|
|
+ emitter.off( 'foo:bar', () => {} );
|
|
|
|
|
|
emitter.off( 'foo' );
|
|
|
emitter.off( 'foo:bar' );
|
|
|
@@ -701,17 +701,17 @@ describe( 'EmitterMixin', () => {
|
|
|
} );
|
|
|
|
|
|
it( 'should not fail with unknown events', () => {
|
|
|
- listener.stopListening( emitter, 'foo', () => { } );
|
|
|
- listener.stopListening( emitter, 'foo:bar', () => { } );
|
|
|
+ listener.stopListening( emitter, 'foo', () => {} );
|
|
|
+ listener.stopListening( emitter, 'foo:bar', () => {} );
|
|
|
listener.stopListening( emitter, 'foo' );
|
|
|
listener.stopListening( emitter, 'foo:bar' );
|
|
|
} );
|
|
|
|
|
|
it( 'should not fail with unknown emitter', () => {
|
|
|
- listener.listenTo( emitter, 'foo:bar', () => { } );
|
|
|
+ listener.listenTo( emitter, 'foo:bar', () => {} );
|
|
|
|
|
|
- listener.stopListening( {}, 'foo', () => { } );
|
|
|
- listener.stopListening( {}, 'foo:bar', () => { } );
|
|
|
+ listener.stopListening( {}, 'foo', () => {} );
|
|
|
+ listener.stopListening( {}, 'foo:bar', () => {} );
|
|
|
listener.stopListening( {}, 'foo' );
|
|
|
listener.stopListening( {}, 'foo:bar' );
|
|
|
listener.stopListening( {} );
|
|
|
@@ -721,7 +721,7 @@ describe( 'EmitterMixin', () => {
|
|
|
const spy = sinon.spy();
|
|
|
|
|
|
listener.listenTo( emitter, 'foo', spy );
|
|
|
- listener.stopListening( emitter, 'foo', () => { } );
|
|
|
+ listener.stopListening( emitter, 'foo', () => {} );
|
|
|
|
|
|
emitter.fire( 'foo' );
|
|
|
|
|
|
@@ -1341,7 +1341,7 @@ describe( '_getEmitterListenedTo', () => {
|
|
|
} );
|
|
|
|
|
|
it( 'should return emitter with given id', () => {
|
|
|
- listener.listenTo( emitter, 'eventName', () => { } );
|
|
|
+ listener.listenTo( emitter, 'eventName', () => {} );
|
|
|
const emitterId = _getEmitterId( emitter );
|
|
|
|
|
|
expect( _getEmitterListenedTo( listener, emitterId ) ).to.equal( emitter );
|