mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
[CSTPER-3620] Workflow Actions refresh entire MyDSpace page instead of just WorkflowItem
Text fix
This commit is contained in:
@@ -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();
|
||||||
|
Reference in New Issue
Block a user