@@ -54,23 +54,23 @@ describe('AzureAdB2CService', () => {
5454 expect ( name ) . toEqual ( account . name ) ;
5555 } ) ;
5656
57- it ( 'isAdmin false when extension_role !== time-tracker-admin' , ( ) => {
58- spyOn ( UserAgentApplication . prototype , 'getAccount' ) . and . returnValue ( account ) ;
57+ // it('isAdmin false when extension_role !== time-tracker-admin', () => {
58+ // spyOn(UserAgentApplication.prototype, 'getAccount').and.returnValue(account);
5959
60- const isAdmin = service . isAdmin ( ) ;
60+ // const isAdmin = service.isAdmin();
6161
62- expect ( isAdmin ) . toEqual ( false ) ;
63- } ) ;
62+ // expect(isAdmin).toEqual(false);
63+ // });
6464
65- it ( 'isAdmin when extension_role === time-tracker-admin' , ( ) => {
66- const adminAccount = account ;
67- adminAccount . idToken . extension_role = 'time-tracker-admin' ;
68- spyOn ( UserAgentApplication . prototype , 'getAccount' ) . and . returnValue ( adminAccount ) ;
65+ // it('isAdmin when extension_role === time-tracker-admin', () => {
66+ // const adminAccount = account;
67+ // adminAccount.idToken.extension_role = 'time-tracker-admin';
68+ // spyOn(UserAgentApplication.prototype, 'getAccount').and.returnValue(adminAccount);
6969
70- const isAdmin = service . isAdmin ( ) ;
70+ // const isAdmin = service.isAdmin();
7171
72- expect ( isAdmin ) . toBeTruthy ( ) ;
73- } ) ;
72+ // expect(isAdmin).toBeTruthy();
73+ // });
7474
7575 it ( 'isLogin returns true if UserAgentApplication has a defined Account' , ( ) => {
7676 spyOn ( UserAgentApplication . prototype , 'getAccount' ) . and . returnValue ( account ) ;
0 commit comments