Răsfoiți Sursa

Tests: Merge attributes definitions in upcast-converters tests.

Maciej Gołaszewski 7 ani în urmă
părinte
comite
30ddfe6b95

+ 1 - 5
packages/ckeditor5-engine/tests/conversion/upcast-converters.js

@@ -36,11 +36,7 @@ describe( 'upcast-helpers', () => {
 
 
 		schema.extend( '$text', {
 		schema.extend( '$text', {
 			allowIn: '$root',
 			allowIn: '$root',
-			allowAttributes: [ 'bold' ]
-		} );
-		schema.extend( '$text', {
-			allowIn: '$root',
-			allowAttributes: [ 'attribA', 'attribB' ]
+			allowAttributes: [ 'bold', 'attribA', 'attribB' ]
 		} );
 		} );
 
 
 		schema.register( 'paragraph', {
 		schema.register( 'paragraph', {