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