@@ -73,7 +73,9 @@ describe("App Store", () => {
7373 }
7474 const mock_store_2 = {
7575 $id : "geodeStore" ,
76- exportStore : vi . fn ( ) . mockImplementation ( ( ) => ( { items : [ ] , total : 0 } ) ) ,
76+ exportStore : vi
77+ . fn ( )
78+ . mockImplementation ( ( ) => ( { items : [ ] , total : 0 } ) ) ,
7779 importStore : vi . fn ( ) . mockImplementation ( ( ) => { } ) ,
7880 }
7981
@@ -142,7 +144,7 @@ describe("App Store", () => {
142144 expect ( userStore . importStore ) . toHaveBeenCalledTimes ( 1 )
143145 expect ( geodeStore . importStore ) . toHaveBeenCalledTimes ( 1 )
144146 } )
145-
147+
146148 test ( "skip stores without importStore method" , ( ) => {
147149 const app_store = useAppStore ( )
148150 const mock_store_1 = {
@@ -164,10 +166,12 @@ describe("App Store", () => {
164166 expect ( mock_store_1 . importStore ) . toHaveBeenCalledTimes ( 1 )
165167 expect ( mock_store_2 . importStore ) . toBeUndefined ( )
166168 } )
167-
169+
168170 test ( "warn when store not found in snapshot" , ( ) => {
169171 const app_store = useAppStore ( )
170- const console_warn_spy = vi . spyOn ( console , "warn" ) . mockImplementation ( ( ) => { } )
172+ const console_warn_spy = vi
173+ . spyOn ( console , "warn" )
174+ . mockImplementation ( ( ) => { } )
171175 const mock_store = {
172176 $id : "testStore" ,
173177 importStore : vi . fn ( ) . mockImplementation ( ( ) => { } ) ,
0 commit comments