@@ -38,14 +38,14 @@ describe('subscription storage', () => {
3838 const observerFn = jest . fn ( ) ;
3939 const { subscription, next } = subscriptionFactory ( observerFn ) ;
4040
41- storeSubscription ( queryClient , 'test' , subscription ) ;
41+ storeSubscription ( queryClient , [ 'test' ] , subscription ) ;
4242
4343 next ( 'value-1' ) ;
4444 expect ( observerFn ) . toHaveBeenCalledTimes ( 1 ) ;
4545 expect ( observerFn ) . toHaveBeenCalledWith ( 'value-1' ) ;
4646 observerFn . mockClear ( ) ;
4747
48- cleanupSubscription ( queryClient , 'test' ) ;
48+ cleanupSubscription ( queryClient , [ 'test' ] ) ;
4949
5050 next ( 'value-2' ) ;
5151 expect ( observerFn ) . not . toHaveBeenCalled ( ) ;
@@ -59,8 +59,8 @@ describe('subscription storage', () => {
5959 const { subscription : subscriptionB , next : nextB } =
6060 subscriptionFactory ( observerBFn ) ;
6161
62- storeSubscription ( queryClient , 'testA' , subscriptionA ) ;
63- storeSubscription ( queryClient , 'testB' , subscriptionB ) ;
62+ storeSubscription ( queryClient , [ 'testA' ] , subscriptionA ) ;
63+ storeSubscription ( queryClient , [ 'testB' ] , subscriptionB ) ;
6464
6565 nextA ( 'A1' ) ;
6666 expect ( observerAFn ) . toHaveBeenCalledTimes ( 1 ) ;
@@ -71,7 +71,7 @@ describe('subscription storage', () => {
7171 expect ( observerBFn ) . toHaveBeenCalledWith ( 'B1' ) ;
7272 observerBFn . mockClear ( ) ;
7373
74- cleanupSubscription ( queryClient , 'testA' ) ;
74+ cleanupSubscription ( queryClient , [ 'testA' ] ) ;
7575
7676 nextA ( 'A2' ) ;
7777 expect ( observerAFn ) . not . toHaveBeenCalled ( ) ;
@@ -82,7 +82,7 @@ describe('subscription storage', () => {
8282
8383 it ( 'should not fail when key does not exist' , ( ) => {
8484 expect ( ( ) =>
85- cleanupSubscription ( queryClient , 'test-non-existing' )
85+ cleanupSubscription ( queryClient , [ 'test-non-existing' ] )
8686 ) . not . toThrow ( ) ;
8787 } ) ;
8888} ) ;
0 commit comments