@@ -681,7 +681,10 @@ describe(`persistedCollectionOptions`, () => {
681681
682682 await collection . preload ( )
683683 await flushAsyncWork ( )
684- expect ( stripVirtualProps ( collection . get ( `2` ) ) ) . toEqual ( { id : `2` , title : `Delete` } )
684+ expect ( stripVirtualProps ( collection . get ( `2` ) ) ) . toEqual ( {
685+ id : `2` ,
686+ title : `Delete` ,
687+ } )
685688
686689 adapter . rows . delete ( `2` )
687690
@@ -833,7 +836,10 @@ describe(`persistedCollectionOptions`, () => {
833836
834837 // Targeted path should NOT have called loadSubset again
835838 expect ( adapter . loadSubsetCalls . length ) . toBe ( loadSubsetCallsAfterPreload )
836- expect ( stripVirtualProps ( collection . get ( `1` ) ) ) . toEqual ( { id : `1` , title : `Updated` } )
839+ expect ( stripVirtualProps ( collection . get ( `1` ) ) ) . toEqual ( {
840+ id : `1` ,
841+ title : `Updated` ,
842+ } )
837843 } )
838844
839845 it ( `targeted update removes row that no longer matches WHERE` , async ( ) => {
@@ -871,7 +877,10 @@ describe(`persistedCollectionOptions`, () => {
871877 // Load a filtered subset with WHERE title = 'Keep'
872878 await ( collection as any ) . _sync . loadSubset ( { where : whereExpr } )
873879 await flushAsyncWork ( )
874- expect ( stripVirtualProps ( collection . get ( `2` ) ) ) . toEqual ( { id : `2` , title : `Keep` } )
880+ expect ( stripVirtualProps ( collection . get ( `2` ) ) ) . toEqual ( {
881+ id : `2` ,
882+ title : `Keep` ,
883+ } )
875884
876885 // Change the row so it no longer matches WHERE title = 'Keep'
877886 adapter . rows . set ( `2` , { id : `2` , title : `Changed` } )
@@ -944,7 +953,10 @@ describe(`persistedCollectionOptions`, () => {
944953 expect ( adapter . loadSubsetCalls . length ) . toBeGreaterThan (
945954 loadSubsetCallsAfterPaginated ,
946955 )
947- expect ( stripVirtualProps ( collection . get ( `1` ) ) ) . toEqual ( { id : `1` , title : `Updated` } )
956+ expect ( stripVirtualProps ( collection . get ( `1` ) ) ) . toEqual ( {
957+ id : `1` ,
958+ title : `Updated` ,
959+ } )
948960 } )
949961} )
950962
0 commit comments