Browse Source

Internal: Minor rearrangement in unit tests.

Marek Lewandowski 6 years ago
parent
commit
93f85b1ac6

+ 1 - 2
packages/ckeditor5-engine/tests/view/observer/mutationobserver.js

@@ -528,6 +528,7 @@ describe( 'MutationObserver', () => {
 	} );
 	} );
 
 
 	describe( 'UIElement integration', () => {
 	describe( 'UIElement integration', () => {
+		const renderStub = sinon.stub();
 		function createUIElement( name ) {
 		function createUIElement( name ) {
 			const element = new UIElement( name );
 			const element = new UIElement( name );
 
 
@@ -541,8 +542,6 @@ describe( 'MutationObserver', () => {
 			return element;
 			return element;
 		}
 		}
 
 
-		const renderStub = sinon.stub();
-
 		beforeEach( () => {
 		beforeEach( () => {
 			const uiElement = createUIElement( 'div' );
 			const uiElement = createUIElement( 'div' );
 			viewRoot._appendChild( uiElement );
 			viewRoot._appendChild( uiElement );