@@ -28,7 +28,7 @@ describe('.pull()', () => {
2828 }
2929 } ) ;
3030 await kit . local . pull ( kit . blockId ) ;
31- const get = await kit . local . get ( kit . blockId ) ;
31+ const get = await kit . local . get ( { id : kit . blockId } ) ;
3232 expect ( get . model . view ( ) ) . toEqual ( { foo : 'bar' } ) ;
3333 await kit . stop ( ) ;
3434 } ) ;
@@ -90,19 +90,19 @@ describe('.pull()', () => {
9090 } ] ,
9191 } ,
9292 } ) ;
93- const get1 = await local . get ( kit . blockId ) ;
93+ const get1 = await local . get ( { id : kit . blockId } ) ;
9494 expect ( get1 . model . view ( ) ) . toEqual ( { foo : 'bar' } ) ;
9595 let cnt = 0 ;
9696 kit . local . change$ ( kit . blockId ) . subscribe ( ( event ) => {
9797 if ( ! ( event as LocalRepoMergeEvent ) . merge ) return ;
9898 cnt ++ ;
9999 } ) ;
100100 await kit . local . pull ( kit . blockId ) ;
101- const get2 = await local . get ( kit . blockId ) ;
101+ const get2 = await local . get ( { id : kit . blockId } ) ;
102102 expect ( get2 . model . view ( ) ) . toEqual ( { foo : 'baz' , x : 1 } ) ;
103103 await kit . local . pull ( kit . blockId ) ;
104104 await kit . local . pull ( kit . blockId ) ;
105- const get3 = await local . get ( kit . blockId ) ;
105+ const get3 = await local . get ( { id : kit . blockId } ) ;
106106 expect ( get3 . model . view ( ) ) . toEqual ( { foo : 'baz' , x : 1 } ) ;
107107 await kit . stop ( ) ;
108108 } ) ;
@@ -244,7 +244,7 @@ describe('.pull()', () => {
244244 expect ( model . view ( ) ) . toEqual ( { foo : 'bar' } ) ;
245245 for ( const patch of event . merge ) model . applyPatch ( patch ) ;
246246 expect ( model . view ( ) ) . toEqual ( { foo : 'baz' , x : 1 } ) ;
247- const read = await kit . local . get ( kit . blockId ) ;
247+ const read = await kit . local . get ( { id : kit . blockId } ) ;
248248 expect ( read . model . view ( ) ) . toEqual ( { foo : 'baz' , x : 1 } ) ;
249249 await kit . stop ( ) ;
250250 } ) ;
@@ -295,7 +295,7 @@ describe('.pull()', () => {
295295 expect ( model . view ( ) ) . toEqual ( { foo : 'bar' } ) ;
296296 model . reset ( < Model < any > > event . reset ) ;
297297 expect ( model . view ( ) ) . toEqual ( { foo : 'baz' , x : 123 } ) ;
298- const read = await kit . local . get ( kit . blockId ) ;
298+ const read = await kit . local . get ( { id : kit . blockId } ) ;
299299 expect ( read . model . view ( ) ) . toEqual ( { foo : 'baz' , x : 123 } ) ;
300300 await kit . stop ( ) ;
301301 } ) ;
0 commit comments