[CSTPER-3620] Workflow Actions refresh entire MyDSpace page instead of just WorkflowItem

Text fix
This commit is contained in:
Alessandro Martelli
2021-01-11 17:39:35 +01:00
parent 2bd8084046
commit 258e48e9a2

View File

@@ -21,6 +21,7 @@ import { of as observableOf } from 'rxjs/internal/observable/of';
import { HttpOptions } from '../dspace-rest/dspace-rest.service'; import { HttpOptions } from '../dspace-rest/dspace-rest.service';
import { getMockRemoteDataBuildService } from '../../shared/mocks/remote-data-build.service.mock'; import { getMockRemoteDataBuildService } from '../../shared/mocks/remote-data-build.service.mock';
import { NotificationsServiceStub } from '../../shared/testing/notifications-service.stub'; import { NotificationsServiceStub } from '../../shared/testing/notifications-service.stub';
import { of } from 'rxjs';
const LINK_NAME = 'test'; const LINK_NAME = 'test';
@@ -124,7 +125,7 @@ describe('TasksService', () => {
it('should call findByHref with the href generated by getSearchByHref', () => { it('should call findByHref with the href generated by getSearchByHref', () => {
spyOn(service, 'getSearchByHref').and.returnValue(observableOf('generatedHref')); spyOn(service, 'getSearchByHref').and.returnValue(observableOf('generatedHref'));
spyOn(service, 'findByHref').and.returnValue(null); spyOn(service, 'findByHref').and.returnValue(of(null));
const followLinks = {}; const followLinks = {};
const options = new FindListOptions(); const options = new FindListOptions();