mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 07:23:03 +00:00
fix #630 Item delete broken - repair tests
This commit is contained in:
@@ -19,6 +19,7 @@ describe('ProcessFormComponent', () => {
|
|||||||
let component: ProcessFormComponent;
|
let component: ProcessFormComponent;
|
||||||
let fixture: ComponentFixture<ProcessFormComponent>;
|
let fixture: ComponentFixture<ProcessFormComponent>;
|
||||||
let scriptService;
|
let scriptService;
|
||||||
|
let router;
|
||||||
let parameterValues;
|
let parameterValues;
|
||||||
let script;
|
let script;
|
||||||
|
|
||||||
@@ -41,7 +42,10 @@ describe('ProcessFormComponent', () => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
)
|
);
|
||||||
|
router = {
|
||||||
|
navigateByUrl: () => undefined,
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
beforeEach(async(() => {
|
beforeEach(async(() => {
|
||||||
@@ -59,8 +63,8 @@ describe('ProcessFormComponent', () => {
|
|||||||
providers: [
|
providers: [
|
||||||
{ provide: ScriptDataService, useValue: scriptService },
|
{ provide: ScriptDataService, useValue: scriptService },
|
||||||
{ provide: NotificationsService, useClass: NotificationsServiceStub },
|
{ provide: NotificationsService, useClass: NotificationsServiceStub },
|
||||||
{ provide: RequestService, useValue: jasmine.createSpyObj('requestService', ['removeBySubstring']) },
|
{ provide: RequestService, useValue: jasmine.createSpyObj('requestService', ['removeByHrefSubstring']) },
|
||||||
{ provide: Router, useValue: {} },
|
{ provide: Router, useValue: router },
|
||||||
],
|
],
|
||||||
schemas: [NO_ERRORS_SCHEMA]
|
schemas: [NO_ERRORS_SCHEMA]
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user