Преглед на файлове

Tests: added missing test for a change in Schema.

Szymon Cofalik преди 9 години
родител
ревизия
e8e99294c8
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 4 0
      packages/ckeditor5-engine/tests/model/schema/schema.js

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

@@ -208,6 +208,10 @@ describe( 'check', () => {
 			// Even if image has src and alt, it can't have attributes that weren't allowed
 			expect( schema.check( { name: 'img', inside: '$block', attributes: [ 'alt', 'src', 'attr' ] } ) ).to.be.false;
 		} );
+
+		it( 'should omit path elements that are added to schema', () => {
+			expect( schema.check( { name: '$inline', inside: '$block new $block' } ) ).to.be.true;
+		} );
 	} );
 
 	describe( 'array of elements as inside', () => {