8
0
Эх сурвалжийг харах

Tests: Minor fixes to Template tests after API changes in ViewCollection class.

Aleksander Nowodzinski 9 жил өмнө
parent
commit
bdcea6bd8c

+ 2 - 2
packages/ckeditor5-ui/tests/template.js

@@ -482,7 +482,7 @@ describe( 'Template', () => {
 				expect( v1.element ).to.equal( rendered.firstChild );
 				expect( v2.element ).to.equal( rendered.lastChild );
 
-				expect( collection.parent ).to.equal( rendered );
+				expect( collection._parentElement ).to.equal( rendered );
 			} );
 		} );
 
@@ -697,7 +697,7 @@ describe( 'Template', () => {
 				} ).apply( el );
 
 				expect( normalizeHtml( el.outerHTML ) ).to.equal( '<div></div>' );
-				expect( collection.parent ).to.be.null;
+				expect( collection._parentElement ).to.be.null;
 			} );
 
 			it( 'should work for deep DOM structure', () => {