manual fixes for max-len

This commit is contained in:
Ryan Stelly
2025-12-22 14:55:52 -06:00
parent dfbfe428ce
commit 8841fb5a82
3 changed files with 11 additions and 3 deletions

View File

@@ -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 {

View File

@@ -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 || ""}`,
);
}

View File

@@ -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(