Przeglądaj źródła

Tests: Update tests after getEditableElement simplification.

Piotr Jasiun 7 lat temu
rodzic
commit
7c6ca9fd4b

+ 2 - 2
packages/ckeditor5-editor-balloon/tests/ballooneditorui.js

@@ -140,8 +140,8 @@ describe( 'BalloonEditorUI', () => {
 			expect( ui.getEditableElement( 'main' ) ).to.equal( view.editable.element );
 		} );
 
-		it( 'returns null if editable with the given name is absent', () => {
-			expect( ui.getEditableElement( 'absent' ) ).to.null;
+		it( 'returns undefined if editable with the given name is absent', () => {
+			expect( ui.getEditableElement( 'absent' ) ).to.be.undefined;
 		} );
 	} );
 } );