@@ -315,7 +315,7 @@ describe('files.reducers quick attachments', () => {
315315 type : 'text/plain' ,
316316 } ) ;
317317
318- it ( 'uploadFile sets isQuickAttachment when flag is passed' , ( ) => {
318+ it ( 'uploadFile sets isFromDeviceAttachment when flag is passed' , ( ) => {
319319 const state = filesSlice . getInitialState ( ) ;
320320
321321 const nextState = filesSlice . reducer (
@@ -325,16 +325,16 @@ describe('files.reducers quick attachments', () => {
325325 id : fileId ,
326326 name : 'attachment.txt' ,
327327 relativePath : 'uploads/2025-01' ,
328- isQuickAttachment : true ,
328+ isFromDeviceAttachment : true ,
329329 } ) ,
330330 ) ;
331331
332332 expect ( nextState . files ) . toHaveLength ( 1 ) ;
333- expect ( nextState . files [ 0 ] . isQuickAttachment ) . toBe ( true ) ;
333+ expect ( nextState . files [ 0 ] . isFromDeviceAttachment ) . toBe ( true ) ;
334334 expect ( nextState . files [ 0 ] . status ) . toBe ( UploadStatus . LOADING ) ;
335335 } ) ;
336336
337- it ( 'uploadFile does not set isQuickAttachment without flag' , ( ) => {
337+ it ( 'uploadFile does not set isFromDeviceAttachment without flag' , ( ) => {
338338 const state = filesSlice . getInitialState ( ) ;
339339
340340 const nextState = filesSlice . reducer (
@@ -347,17 +347,17 @@ describe('files.reducers quick attachments', () => {
347347 } ) ,
348348 ) ;
349349
350- expect ( nextState . files [ 0 ] . isQuickAttachment ) . toBeUndefined ( ) ;
350+ expect ( nextState . files [ 0 ] . isFromDeviceAttachment ) . toBeUndefined ( ) ;
351351 } ) ;
352352
353- it ( 'uploadFileSuccess preserves isQuickAttachment ' , ( ) => {
353+ it ( 'uploadFileSuccess preserves isFromDeviceAttachment ' , ( ) => {
354354 const state = {
355355 ...filesSlice . getInitialState ( ) ,
356356 files : [
357357 makeFile ( {
358358 id : fileId ,
359359 status : UploadStatus . LOADING ,
360- isQuickAttachment : true ,
360+ isFromDeviceAttachment : true ,
361361 } ) ,
362362 ] ,
363363 } ;
@@ -372,7 +372,7 @@ describe('files.reducers quick attachments', () => {
372372 } ) ,
373373 ) ;
374374
375- expect ( nextState . files [ 0 ] . isQuickAttachment ) . toBe ( true ) ;
375+ expect ( nextState . files [ 0 ] . isFromDeviceAttachment ) . toBe ( true ) ;
376376 expect ( nextState . files [ 0 ] . serverSynced ) . toBe ( true ) ;
377377 } ) ;
378378
@@ -383,7 +383,7 @@ describe('files.reducers quick attachments', () => {
383383 files : [
384384 makeFile ( {
385385 id : fileId ,
386- isQuickAttachment : true ,
386+ isFromDeviceAttachment : true ,
387387 } ) ,
388388 ] ,
389389 } ;
0 commit comments