mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2025-12-23 14:08:56 -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,
|
||||
scoreImageParams: action.scoreImageParams,
|
||||
shouldUseEvidenceLocation: action.shouldUseEvidenceLocation,
|
||||
queryKey: setQueryKey( action.scoreImageParams.image.uri, action.shouldUseEvidenceLocation ),
|
||||
queryKey: setQueryKey(
|
||||
action.scoreImageParams.image.uri,
|
||||
action.shouldUseEvidenceLocation,
|
||||
),
|
||||
};
|
||||
case "ORDER_SUGGESTIONS":
|
||||
return {
|
||||
|
||||
@@ -99,6 +99,7 @@ const markRecordUploaded = (
|
||||
|
||||
if ( !record ) {
|
||||
throw new Error(
|
||||
// eslint-disable-next-line max-len
|
||||
`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 );
|
||||
await act( async ( ) => actor.press( obsEditPhotos[0] ) );
|
||||
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
|
||||
).toBeOnTheScreen( );
|
||||
} );
|
||||
@@ -126,7 +128,9 @@ describe( "MediaViewer navigation", ( ) => {
|
||||
expect( obsEditPhotos.length ).toEqual( observation.observationPhotos.length );
|
||||
await act( async ( ) => actor.press( obsEditPhotos[1] ) );
|
||||
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
|
||||
).toBeOnTheScreen( );
|
||||
expect(
|
||||
|
||||
Reference in New Issue
Block a user