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

Tests: Simplified common code.

Marek Lewandowski 6 лет назад
Родитель
Сommit
3110b53d60
1 измененных файлов с 1 добавлено и 4 удалено
  1. 1 4
      packages/ckeditor5-engine/tests/model/schema.js

+ 1 - 4
packages/ckeditor5-engine/tests/model/schema.js

@@ -105,11 +105,10 @@ describe( 'Schema', () => {
 			schema.register( '$text', {
 				allowIn: 'paragraph'
 			} );
+			schema.extend( '$text', { allowAttributes: 'testAttribute' } );
 		} );
 
 		it( 'allows registering new properties', () => {
-			schema.extend( '$text', { allowAttributes: 'testAttribute' } );
-
 			schema.setAttributeProperties( 'testAttribute', {
 				foo: 'bar',
 				baz: 'bom'
@@ -122,8 +121,6 @@ describe( 'Schema', () => {
 		} );
 
 		it( 'support adding properties in subsequent calls', () => {
-			schema.extend( '$text', { allowAttributes: 'testAttribute' } );
-
 			schema.setAttributeProperties( 'testAttribute', {
 				first: 'foo'
 			} );