mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2025-12-23 22:18:36 -05:00
manual fixes for max-len
This commit is contained in:
@@ -108,7 +108,10 @@ const reducer = ( state: State, action: Action ): State => {
|
|||||||
offlineFetchStatus: FETCH_STATUSES.FETCH_STATUS_LOADING,
|
offlineFetchStatus: FETCH_STATUSES.FETCH_STATUS_LOADING,
|
||||||
scoreImageParams: action.scoreImageParams,
|
scoreImageParams: action.scoreImageParams,
|
||||||
shouldUseEvidenceLocation: action.shouldUseEvidenceLocation,
|
shouldUseEvidenceLocation: action.shouldUseEvidenceLocation,
|
||||||
queryKey: setQueryKey( action.scoreImageParams.image.uri, action.shouldUseEvidenceLocation ),
|
queryKey: setQueryKey(
|
||||||
|
action.scoreImageParams.image.uri,
|
||||||
|
action.shouldUseEvidenceLocation,
|
||||||
|
),
|
||||||
};
|
};
|
||||||
case "ORDER_SUGGESTIONS":
|
case "ORDER_SUGGESTIONS":
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -99,6 +99,7 @@ const markRecordUploaded = (
|
|||||||
|
|
||||||
if ( !record ) {
|
if ( !record ) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
|
// eslint-disable-next-line max-len
|
||||||
`Cannot find local Realm object to mark as updated (${type}), recordUUID: ${recordUUID || ""}`,
|
`Cannot find local Realm object to mark as updated (${type}), recordUUID: ${recordUUID || ""}`,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -115,7 +115,9 @@ describe( "MediaViewer navigation", ( ) => {
|
|||||||
expect( obsEditPhotos.length ).toEqual( observation.observationPhotos.length );
|
expect( obsEditPhotos.length ).toEqual( observation.observationPhotos.length );
|
||||||
await act( async ( ) => actor.press( obsEditPhotos[0] ) );
|
await act( async ( ) => actor.press( obsEditPhotos[0] ) );
|
||||||
expect(
|
expect(
|
||||||
await screen.findByTestId( `CustomImageZoom.${observation.observationPhotos[0].photo.url}` ),
|
await screen.findByTestId(
|
||||||
|
`CustomImageZoom.${observation.observationPhotos[0].photo.url}`,
|
||||||
|
),
|
||||||
// We used toBeVisible here but the update to RN0.77 broke this expectation
|
// We used toBeVisible here but the update to RN0.77 broke this expectation
|
||||||
).toBeOnTheScreen( );
|
).toBeOnTheScreen( );
|
||||||
} );
|
} );
|
||||||
@@ -126,7 +128,9 @@ describe( "MediaViewer navigation", ( ) => {
|
|||||||
expect( obsEditPhotos.length ).toEqual( observation.observationPhotos.length );
|
expect( obsEditPhotos.length ).toEqual( observation.observationPhotos.length );
|
||||||
await act( async ( ) => actor.press( obsEditPhotos[1] ) );
|
await act( async ( ) => actor.press( obsEditPhotos[1] ) );
|
||||||
expect(
|
expect(
|
||||||
await screen.findByTestId( `CustomImageZoom.${observation.observationPhotos[1].photo.url}` ),
|
await screen.findByTestId(
|
||||||
|
`CustomImageZoom.${observation.observationPhotos[1].photo.url}`,
|
||||||
|
),
|
||||||
// We used toBeVisible here but the update to RN0.77 broke this expectation
|
// We used toBeVisible here but the update to RN0.77 broke this expectation
|
||||||
).toBeOnTheScreen( );
|
).toBeOnTheScreen( );
|
||||||
expect(
|
expect(
|
||||||
|
|||||||
Reference in New Issue
Block a user