@@ -355,8 +355,7 @@ describe('SubmitDetailsPage', () => {
355355 expect ( jest . mocked ( readFileAsync ) ) . not . toHaveBeenCalled ( ) ;
356356 } ) ;
357357
358- // Error #12 — the share extension wipes its folder on the next share, so the receipt must be read from the
359- // receipts folder, not from the app-group folder it was shared into.
358+ // Error #12 — the share extension wipes its folder on the next share, so the read must come from the receipts folder.
360359 it ( 'adopts the shared file into the receipts folder and uploads from there' , async ( ) => {
361360 // Given a share whose file adopt moves into the receipts folder
362361 const durableUri = 'file:///Documents/Receipts-Upload/shared_1234.jpg' ;
@@ -371,8 +370,7 @@ describe('SubmitDetailsPage', () => {
371370 expect ( jest . mocked ( readFileAsync ) . mock . calls . at ( 0 ) ?. [ 0 ] ) . toBe ( durableUri ) ;
372371 } ) ;
373372
374- // Error #12b — a failed move must not block the submit: the shared path still works for this session,
375- // so falling back keeps a rare failure from turning every share into a dead end.
373+ // Error #12b — a failed move must not block the submit: the shared path still works for this session.
376374 it ( 'submits with the shared path when adopting the file fails' , async ( ) => {
377375 // Given adopt rejects
378376 const logAlertSpy = jest . spyOn ( Log , 'alert' ) . mockImplementation ( ( ) => { } ) ;
@@ -389,8 +387,7 @@ describe('SubmitDetailsPage', () => {
389387 logAlertSpy . mockRestore ( ) ;
390388 } ) ;
391389
392- // Error #12c — adopt is a move, so the shared path is empty once it lands. A retry after a read failure has to read
393- // the durable copy, or it adopts a path that no longer exists and the advertised retry can never recover.
390+ // Error #12c — adopt is a move, so a retry after a read failure has to work off the durable copy.
394391 it ( 'retries from the durable copy after a file-read failure' , async ( ) => {
395392 // Given a share that adopts fine but fails its first read
396393 const durableUri = 'file:///Documents/Receipts-Upload/shared_1234.jpg' ;
0 commit comments