Преглед изворни кода

Tests: Update not bound property unbinding tests.

Maciej Gołaszewski пре 8 година
родитељ
комит
b3acf3f8e6
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      packages/ckeditor5-utils/tests/observablemixin.js

+ 2 - 2
packages/ckeditor5-utils/tests/observablemixin.js

@@ -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', () => {