@@ -30,10 +30,8 @@ import type {
3030 TargetType ,
3131} from 'src/ExposedTypes' ;
3232
33- const {
34- BlobCourier : BlobCourierNative ,
35- BlobCourierEventEmitter,
36- } = NativeModules ;
33+ const { BlobCourier : BlobCourierNative , BlobCourierEventEmitter } =
34+ NativeModules ;
3735
3836const NATIVE_EVENT_EMITTER_SINGLETON = new NativeEventEmitter (
3937 BlobCourierEventEmitter
@@ -65,12 +63,13 @@ const DEFAULT_MULTIPART_UPLOAD_REQUEST: BlobMultipartMapUploadRequest = {
6563 url : 'https://github.com/edeckers/react-native-blob-courier' ,
6664} ;
6765
68- const DEFAULT_MULTIPART_ARRAY_UPLOAD_REQUEST : BlobMultipartArrayUploadRequest = {
69- ...DEFAULT_MULTIPART_UPLOAD_REQUEST ,
70- parts : convertMappedMultipartsWithSymbolizedKeysToArray (
71- sanitizeMappedMultiparts ( DEFAULT_MULTIPART_UPLOAD_REQUEST . parts )
72- ) ,
73- } ;
66+ const DEFAULT_MULTIPART_ARRAY_UPLOAD_REQUEST : BlobMultipartArrayUploadRequest =
67+ {
68+ ...DEFAULT_MULTIPART_UPLOAD_REQUEST ,
69+ parts : convertMappedMultipartsWithSymbolizedKeysToArray (
70+ sanitizeMappedMultiparts ( DEFAULT_MULTIPART_UPLOAD_REQUEST . parts )
71+ ) ,
72+ } ;
7473
7574const RANDOM_VALUE_GENERATORS : { [ key : string ] : ( ) => any } = {
7675 boolean : ( ) => Math . random ( ) >= 0.5 ,
@@ -165,7 +164,8 @@ describe('Given fallback parameters are provided through a constant', () => {
165164 target : DEFAULT_FETCH_TARGET ,
166165 } ,
167166 method : 'GET' ,
168- progressIntervalMilliseconds : DEFAULT_PROGRESS_UPDATE_INTERVAL_MILLISECONDS ,
167+ progressIntervalMilliseconds :
168+ DEFAULT_PROGRESS_UPDATE_INTERVAL_MILLISECONDS ,
169169 } ) ;
170170 } ) ;
171171
@@ -329,7 +329,8 @@ describe('Given a fluent fetch request', () => {
329329 testAsync (
330330 'The native module is called with all required values and the provided settings' ,
331331 async ( ) => {
332- const progressIntervalMilliseconds = DEFAULT_PROGRESS_UPDATE_INTERVAL_MILLISECONDS ;
332+ const progressIntervalMilliseconds =
333+ DEFAULT_PROGRESS_UPDATE_INTERVAL_MILLISECONDS ;
333334
334335 await BlobCourier . settings ( {
335336 progressIntervalMilliseconds,
@@ -454,9 +455,8 @@ describe('Given a fluent fetch request', () => {
454455 } ,
455456 } ;
456457
457- const parameterIntersection = dict ( calledWithParameters ) . intersect (
458- expectedParameters
459- ) ;
458+ const parameterIntersection =
459+ dict ( calledWithParameters ) . intersect ( expectedParameters ) ;
460460
461461 expect ( expectedParameters ) . toEqual ( parameterIntersection ) ;
462462 expect ( BlobCourierEventEmitter . addListener ) . toHaveBeenCalled ( ) ;
@@ -493,9 +493,8 @@ describe('Given a fluent fetch request', () => {
493493 } ,
494494 } ;
495495
496- const parameterIntersection = dict ( calledWithParameters ) . intersect (
497- expectedParameters
498- ) ;
496+ const parameterIntersection =
497+ dict ( calledWithParameters ) . intersect ( expectedParameters ) ;
499498
500499 expect ( expectedParameters ) . toEqual ( parameterIntersection ) ;
501500 verifyPropertyExistsAndIsDefined ( calledWithParameters , 'taskId' ) ;
0 commit comments