How to use the @ckeditor/ckeditor5-upload/tests/_utils/mocks.NativeFileReaderMock function in @ckeditor/ckeditor5-upload

To help you get started, we’ve selected a few @ckeditor/ckeditor5-upload examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ckeditor / ckeditor5-image / tests / imageupload / imageuploadprogress.js View on Github external
testUtils.sinon.stub( window, 'FileReader' ).callsFake( () => {
			nativeReaderMock = new NativeFileReaderMock();

			return nativeReaderMock;
		} );
github ckeditor / ckeditor5-image / tests / imageupload / imageuploadediting.js View on Github external
sinon.stub( window, 'FileReader' ).callsFake( () => {
			nativeReaderMock = new NativeFileReaderMock();

			return nativeReaderMock;
		} );