Browse Source

Tests: Corrected data transfer mock in failing test.

Krzysztof Krztoń 7 years ago
parent
commit
f11bfb1f9c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/ckeditor5-image/tests/imageupload/imageuploadediting.js

+ 1 - 1
packages/ckeditor5-image/tests/imageupload/imageuploadediting.js

@@ -219,7 +219,7 @@ describe( 'ImageUploadEditing', () => {
 
 	it( 'should not insert image when file is null', () => {
 		const viewDocument = editor.editing.view.document;
-		const dataTransfer = new DataTransfer( { files: [ null ], types: [ 'Files' ] } );
+		const dataTransfer = new DataTransfer( { files: [ null ], types: [ 'Files' ], getData: () => null } );
 
 		setModelData( model, '<paragraph>foo[]</paragraph>' );