@@ -115,7 +115,9 @@ describe('useTriggerProviderReconnect', () => {
115115
116116 expect ( mockTriggerApisOAuth ) . toHaveBeenCalledWith (
117117 ConnectedAccountProvider . GOOGLE ,
118- undefined ,
118+ {
119+ redirectLocation : '/settings/accounts' ,
120+ } ,
119121 ) ;
120122 expect ( mockNavigate ) . not . toHaveBeenCalled ( ) ;
121123 } ) ;
@@ -133,7 +135,9 @@ describe('useTriggerProviderReconnect', () => {
133135
134136 expect ( mockTriggerApisOAuth ) . toHaveBeenCalledWith (
135137 ConnectedAccountProvider . MICROSOFT ,
136- undefined ,
138+ {
139+ redirectLocation : '/settings/accounts' ,
140+ } ,
137141 ) ;
138142 expect ( mockNavigate ) . not . toHaveBeenCalled ( ) ;
139143 } ) ;
@@ -160,7 +164,10 @@ describe('useTriggerProviderReconnect', () => {
160164
161165 expect ( mockTriggerApisOAuth ) . toHaveBeenCalledWith (
162166 ConnectedAccountProvider . GOOGLE ,
163- options ,
167+ {
168+ ...options ,
169+ redirectLocation : '/settings/accounts' ,
170+ } ,
164171 ) ;
165172 expect ( mockNavigate ) . not . toHaveBeenCalled ( ) ;
166173 } ) ;
@@ -186,7 +193,10 @@ describe('useTriggerProviderReconnect', () => {
186193
187194 expect ( mockTriggerApisOAuth ) . toHaveBeenCalledWith (
188195 ConnectedAccountProvider . MICROSOFT ,
189- options ,
196+ {
197+ ...options ,
198+ redirectLocation : '/settings/accounts' ,
199+ } ,
190200 ) ;
191201 expect ( mockNavigate ) . not . toHaveBeenCalled ( ) ;
192202 } ) ;
@@ -205,7 +215,9 @@ describe('useTriggerProviderReconnect', () => {
205215
206216 expect ( mockTriggerApisOAuth ) . toHaveBeenCalledWith (
207217 ConnectedAccountProvider . GOOGLE ,
208- undefined ,
218+ {
219+ redirectLocation : '/settings/accounts' ,
220+ } ,
209221 ) ;
210222 expect ( mockNavigate ) . not . toHaveBeenCalled ( ) ;
211223 } ) ;
@@ -230,7 +242,9 @@ describe('useTriggerProviderReconnect', () => {
230242
231243 expect ( mockTriggerApisOAuth ) . toHaveBeenCalledWith (
232244 ConnectedAccountProvider . GOOGLE ,
233- undefined ,
245+ {
246+ redirectLocation : '/settings/accounts' ,
247+ } ,
234248 ) ;
235249 } ) ;
236250 } ) ;
0 commit comments