浏览代码

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

Piotrek Koszuliński 8 年之前
父节点
当前提交
e4faa6eb12
共有 1 个文件被更改,包括 3 次插入3 次删除
  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', () => {