Removed Evented#removeListener test now part of EventableTestConform

events
Mike Gerwitz 2014-08-10 23:23:29 -04:00
parent dffadf15cb
commit d25dff1e84
1 changed files with 0 additions and 31 deletions

View File

@ -447,37 +447,6 @@ describe( 'event.Evented', () =>
} ); } );
/**
* If the given listener to remove was never registered (or no
* longer is), then we will shall act as though it was successfully
* removed (since, according to our initial requirement, we
* succeeded in ensuring that the listener will not be called on
* subsequent emits).
*/
it( 'does not fail and returns self on missing listener', () =>
{
let ev = 'foo';
expect(
stub.evDefineEvents( [ ev ] )
.removeListener( ev, () => {} )
).to.equal( stub );
} );
it( 'returns self on success', () =>
{
let ev = 'foo',
f = () => {};
expect(
stub.evDefineEvents( [ ev ] )
.on( ev, f )
.removeListener( ev, f )
).to.equal( stub );
} );
/** /**
* These are tests that are not design per se, but are intended to * These are tests that are not design per se, but are intended to
* comprehensively guard against future design changes, likely or * comprehensively guard against future design changes, likely or