Ver Fonte

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

Piotrek Koszuliński há 8 anos atrás
pai
commit
e718cd21b0
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      packages/ckeditor5-upload/tests/imageuploadengine.js

+ 1 - 1
packages/ckeditor5-upload/tests/imageuploadengine.js

@@ -65,7 +65,7 @@ describe( 'ImageUploadEngine', () => {
 	} );
 
 	it( 'should register proper schema rules', () => {
-		expect( model.schema.check( { name: 'image', attributes: [ 'uploadId' ], inside: '$root' } ) ).to.be.true;
+		expect( model.schema.checkAttribute( [ '$root', 'image' ], 'uploadId' ) ).to.be.true;
 	} );
 
 	it( 'should register imageUpload command', () => {