mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-10 03:23:07 +00:00
fix tests
This commit is contained in:
@@ -48,7 +48,7 @@ describe('DeleteComColPageComponent', () => {
|
||||
dsoDataService = jasmine.createSpyObj(
|
||||
'dsoDataService',
|
||||
{
|
||||
delete: observableOf(true)
|
||||
delete: observableOf({ isSuccessful: true })
|
||||
});
|
||||
|
||||
routerStub = {
|
||||
@@ -106,7 +106,7 @@ describe('DeleteComColPageComponent', () => {
|
||||
});
|
||||
|
||||
it('should show an error notification on failure', () => {
|
||||
(dsoDataService.delete as any).and.returnValue(observableOf(false));
|
||||
(dsoDataService.delete as any).and.returnValue(observableOf({ isSuccessful: false }));
|
||||
spyOn(router, 'navigate');
|
||||
comp.onConfirm(data2);
|
||||
fixture.detectChanges();
|
||||
|
Reference in New Issue
Block a user