@@ -70,7 +70,7 @@ describe('ImplicitFlowCallbackService ', () => {
70
70
existingIdToken : '' ,
71
71
} ;
72
72
const spy = spyOn ( flowsService , 'processImplicitFlowCallback' ) . and . returnValue ( of ( callbackContext ) ) ;
73
- const routerSpy = spyOn ( router , 'navigate ' ) ;
73
+ const routerSpy = spyOn ( router , 'navigateByUrl ' ) ;
74
74
spyOn ( configurationProvider , 'getOpenIDConfiguration' ) . and . returnValue ( { triggerAuthorizationResultEvent : true } ) ;
75
75
implicitFlowCallbackService . authorizedImplicitFlowCallback ( 'some-hash' ) . subscribe ( ( ) => {
76
76
expect ( spy ) . toHaveBeenCalledWith ( 'some-hash' ) ;
@@ -94,14 +94,14 @@ describe('ImplicitFlowCallbackService ', () => {
94
94
existingIdToken : '' ,
95
95
} ;
96
96
const spy = spyOn ( flowsService , 'processImplicitFlowCallback' ) . and . returnValue ( of ( callbackContext ) ) ;
97
- const routerSpy = spyOn ( router , 'navigate ' ) ;
97
+ const routerSpy = spyOn ( router , 'navigateByUrl ' ) ;
98
98
spyOn ( configurationProvider , 'getOpenIDConfiguration' ) . and . returnValue ( {
99
99
triggerAuthorizationResultEvent : false ,
100
100
postLoginRoute : 'postLoginRoute' ,
101
101
} ) ;
102
102
implicitFlowCallbackService . authorizedImplicitFlowCallback ( 'some-hash' ) . subscribe ( ( ) => {
103
103
expect ( spy ) . toHaveBeenCalledWith ( 'some-hash' ) ;
104
- expect ( routerSpy ) . toHaveBeenCalledWith ( [ 'postLoginRoute' ] ) ;
104
+ expect ( routerSpy ) . toHaveBeenCalledWith ( 'postLoginRoute' ) ;
105
105
} ) ;
106
106
} )
107
107
) ;
@@ -135,7 +135,7 @@ describe('ImplicitFlowCallbackService ', () => {
135
135
spyOn ( flowsService , 'processImplicitFlowCallback' ) . and . returnValue ( throwError ( 'error' ) ) ;
136
136
const resetSilentRenewRunningSpy = spyOn ( flowsDataService , 'resetSilentRenewRunning' ) ;
137
137
const stopPeriodicallTokenCheckSpy = spyOn ( intervalService , 'stopPeriodicallTokenCheck' ) ;
138
- const routerSpy = spyOn ( router , 'navigate ' ) ;
138
+ const routerSpy = spyOn ( router , 'navigateByUrl ' ) ;
139
139
140
140
spyOn ( configurationProvider , 'getOpenIDConfiguration' ) . and . returnValue ( {
141
141
triggerAuthorizationResultEvent : false ,
@@ -146,7 +146,7 @@ describe('ImplicitFlowCallbackService ', () => {
146
146
expect ( resetSilentRenewRunningSpy ) . toHaveBeenCalled ( ) ;
147
147
expect ( stopPeriodicallTokenCheckSpy ) . toHaveBeenCalled ( ) ;
148
148
expect ( err ) . toBeTruthy ( ) ;
149
- expect ( routerSpy ) . toHaveBeenCalledWith ( [ 'unauthorizedRoute' ] ) ;
149
+ expect ( routerSpy ) . toHaveBeenCalledWith ( 'unauthorizedRoute' ) ;
150
150
} ,
151
151
} ) ;
152
152
} )
0 commit comments