mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
[DURACOM-133] Fixed failing test
This commit is contained in:
@@ -157,6 +157,9 @@ authService = jasmine.createSpyObj('authService', {
|
||||
|
||||
describe('WorkspaceitemActionsComponent', () => {
|
||||
beforeEach(waitForAsync(async () => {
|
||||
authorizationService = jasmine.createSpyObj('authorizationService', {
|
||||
isAuthorized: observableOf(true)
|
||||
});
|
||||
await TestBed.configureTestingModule({
|
||||
imports: [
|
||||
NgbModule,
|
||||
@@ -190,9 +193,6 @@ describe('WorkspaceitemActionsComponent', () => {
|
||||
component = fixture.componentInstance;
|
||||
component.object = mockObject;
|
||||
notificationsServiceStub = TestBed.inject(NotificationsService as any);
|
||||
authorizationService = jasmine.createSpyObj('authorizationService', {
|
||||
isAuthorized: observableOf(true)
|
||||
});
|
||||
(authService.getAuthenticatedUserFromStore as jasmine.Spy).and.returnValue(observableOf(ePersonMock));
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
Reference in New Issue
Block a user