Răsfoiți Sursa

Tests: Simplified common code.

Marek Lewandowski 6 ani în urmă
părinte
comite
3110b53d60
1 a modificat fișierele cu 1 adăugiri și 4 ștergeri
  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'
 			} );