File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -89,12 +89,14 @@ describe('LoginComponent', () => {
8989 spyOn ( azureAdB2CService , 'isLogin' ) . and . returnValue ( false ) ;
9090 spyOn ( azureAdB2CService , 'setCookies' ) . and . returnValue ( ) ;
9191 spyOn ( azureAdB2CService , 'signIn' ) . and . returnValue ( of ( ( ) => { } ) ) ;
92+ spyOn ( azureAdB2CService , 'getUserId' ) . and . returnValue ( 'userId_123' ) ;
9293 spyOn ( featureToggleCookiesService , 'setCookies' ) . and . returnValue ( featureToggleCookiesService . setCookies ( ) ) ;
9394
9495 component . login ( ) ;
9596
9697 expect ( azureAdB2CService . signIn ) . toHaveBeenCalled ( ) ;
9798 expect ( azureAdB2CService . setCookies ) . toHaveBeenCalled ( ) ;
99+ expect ( azureAdB2CService . getUserId ) . toHaveBeenCalled ( ) ;
98100 expect ( featureToggleCookiesService . setCookies ) . toHaveBeenCalled ( ) ;
99101 } ) ) ;
100102
You can’t perform that action at this time.
0 commit comments