@@ -79,14 +79,14 @@ describe('get subscription data with cache expiration', () => {
7979 jest . advanceTimersByTime ( 60 * 60 * 24 ) ;
8080 mockGetTenantSubscription . mockResolvedValueOnce ( {
8181 ...mockSubscription ,
82- planId : ReservedPlanId . Pro202411 ,
82+ planId : ReservedPlanId . Pro202509 ,
8383 } ) ;
8484
8585 // Should get new subscription data
8686 const refreshedSubscriptionData = await subscription . getSubscriptionData ( ) ;
8787 expect ( refreshedSubscriptionData ) . toEqual ( {
8888 ...mockSubscription ,
89- planId : ReservedPlanId . Pro202411 ,
89+ planId : ReservedPlanId . Pro202509 ,
9090 } ) ;
9191 expect ( mockGetTenantSubscription ) . toHaveBeenCalled ( ) ;
9292 } ) ;
@@ -118,14 +118,14 @@ describe('get subscription data with cache expiration', () => {
118118 jest . advanceTimersByTime ( 2 * 60 * 60 ) ;
119119 mockGetTenantSubscription . mockResolvedValueOnce ( {
120120 ...mockFarFutureSubscription ,
121- planId : ReservedPlanId . Pro202411 ,
121+ planId : ReservedPlanId . Pro202509 ,
122122 } ) ;
123123
124124 // Should get new subscription data due to max TTL
125125 const refreshedSubscriptionData = await subscription . getSubscriptionData ( ) ;
126126 expect ( refreshedSubscriptionData ) . toEqual ( {
127127 ...mockFarFutureSubscription ,
128- planId : ReservedPlanId . Pro202411 ,
128+ planId : ReservedPlanId . Pro202509 ,
129129 } ) ;
130130 expect ( mockGetTenantSubscription ) . toHaveBeenCalled ( ) ;
131131 } ) ;
@@ -149,14 +149,14 @@ describe('get subscription data with cache expiration', () => {
149149 jest . advanceTimersByTime ( 60 * 60 ) ;
150150 mockGetTenantSubscription . mockResolvedValueOnce ( {
151151 ...mockExpiredSubscription ,
152- planId : ReservedPlanId . Pro202411 ,
152+ planId : ReservedPlanId . Pro202509 ,
153153 } ) ;
154154
155155 // Should get new subscription data since the cache should be invalidated
156156 const refreshedSubscriptionData = await subscription . getSubscriptionData ( ) ;
157157 expect ( refreshedSubscriptionData ) . toEqual ( {
158158 ...mockExpiredSubscription ,
159- planId : ReservedPlanId . Pro202411 ,
159+ planId : ReservedPlanId . Pro202509 ,
160160 } ) ;
161161 expect ( mockGetTenantSubscription ) . toHaveBeenCalled ( ) ;
162162 } ) ;
0 commit comments