8
0
Quellcode durchsuchen

Second batch of changes updating schema use to match the new API.

Piotrek Koszuliński vor 8 Jahren
Ursprung
Commit
e4faa6eb12
1 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. 3 3
      packages/ckeditor5-link/tests/linkengine.js

+ 3 - 3
packages/ckeditor5-link/tests/linkengine.js

@@ -34,9 +34,9 @@ describe( 'LinkEngine', () => {
 	} );
 
 	it( 'should set proper schema rules', () => {
-		expect( model.schema.check( { name: '$text', attributes: 'linkHref', inside: '$root' } ) ).to.be.false;
-		expect( model.schema.check( { name: '$text', attributes: 'linkHref', inside: '$block' } ) ).to.be.true;
-		expect( model.schema.check( { name: '$text', attributes: 'linkHref', inside: '$clipboardHolder' } ) ).to.be.true;
+		expect( model.schema.checkAttribute( [ '$root', '$text' ], 'linkHref' ) ).to.be.false;
+		expect( model.schema.checkAttribute( [ '$block', '$text' ], 'linkHref' ) ).to.be.true;
+		expect( model.schema.checkAttribute( [ '$clipboardHolder', '$text' ], 'linkHref' ) ).to.be.true;
 	} );
 
 	describe( 'command', () => {