@@ -16,6 +16,7 @@ import { AuthorizationDataService } from '../../../core/data/feature-authorizati
1616import { IdentifierDataService } from '../../../core/data/identifier-data.service' ;
1717import { ConfigurationDataService } from '../../../core/data/configuration-data.service' ;
1818import { ConfigurationProperty } from '../../../core/shared/configuration-property.model' ;
19+ import { OrcidAuthService } from '../../../core/orcid/orcid-auth.service' ;
1920
2021let mockIdentifierDataService : IdentifierDataService ;
2122let mockConfigurationDataService : ConfigurationDataService ;
@@ -57,12 +58,18 @@ describe('ItemStatusComponent', () => {
5758 } ;
5859
5960 let authorizationService : AuthorizationDataService ;
61+ let orcidAuthService : any ;
6062
6163 beforeEach ( waitForAsync ( ( ) => {
6264 authorizationService = jasmine . createSpyObj ( 'authorizationService' , {
6365 isAuthorized : observableOf ( true )
6466 } ) ;
6567
68+ orcidAuthService = jasmine . createSpyObj ( 'OrcidAuthService' , {
69+ onlyAdminCanDisconnectProfileFromOrcid : observableOf ( true ) ,
70+ isLinkedToOrcid : true
71+ } ) ;
72+
6673 TestBed . configureTestingModule ( {
6774 imports : [ CommonModule , RouterTestingModule . withRoutes ( [ ] ) , TranslateModule . forRoot ( ) , NgbModule ] ,
6875 declarations : [ ItemStatusComponent ] ,
@@ -71,7 +78,8 @@ describe('ItemStatusComponent', () => {
7178 { provide : HostWindowService , useValue : new HostWindowServiceStub ( 0 ) } ,
7279 { provide : AuthorizationDataService , useValue : authorizationService } ,
7380 { provide : IdentifierDataService , useValue : mockIdentifierDataService } ,
74- { provide : ConfigurationDataService , useValue : mockConfigurationDataService }
81+ { provide : ConfigurationDataService , useValue : mockConfigurationDataService } ,
82+ { provide : OrcidAuthService , useValue : orcidAuthService } ,
7583 ] , schemas : [ CUSTOM_ELEMENTS_SCHEMA ]
7684 } ) . compileComponents ( ) ;
7785 } ) ) ;
0 commit comments