8
0
Просмотр исходного кода

Tests: Minor code refactoring.

Aleksander Nowodzinski 8 лет назад
Родитель
Сommit
d8179f239d
1 измененных файлов с 6 добавлено и 6 удалено
  1. 6 6
      packages/ckeditor5-ui/tests/template.js

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

@@ -571,15 +571,15 @@ describe( 'Template', () => {
 				);
 				);
 			} );
 			} );
 
 
-			// #289
+			// https://github.com/ckeditor/ckeditor5-ui/issues/289
 			it( 'does not throw when child does not have an "id" property', () => {
 			it( 'does not throw when child does not have an "id" property', () => {
-				expect( () => {
-					const strongView = getView( {
-						tag: 'strong'
-					} );
+				const strongView = getView( {
+					tag: 'strong'
+				} );
 
 
-					strongView.set( 'id' );
+				strongView.set( 'id' );
 
 
+				expect( () => {
 					getView( {
 					getView( {
 						tag: 'div',
 						tag: 'div',
 						children: [
 						children: [