|
|
@@ -739,12 +739,12 @@ describe( 'Observable', () => {
|
|
|
observable.unbind();
|
|
|
} );
|
|
|
|
|
|
- it( 'should not fail when unbinding non-binded property', () => {
|
|
|
+ it( 'should not fail when unbinding attribute that is not bound', () => {
|
|
|
const observable = new Observable();
|
|
|
|
|
|
observable.bind( 'foo' ).to( car, 'color' );
|
|
|
|
|
|
- observable.unbind( 'bar' );
|
|
|
+ expect( () => observable.unbind( 'bar' ) ).to.not.throw();
|
|
|
} );
|
|
|
|
|
|
it( 'should throw when non-string attribute is passed', () => {
|