mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
[CSTPER-3620] Workflow Actions refresh entire MyDSpace page instead of just WorkflowItem
Provided mock and stub instead of empty objects
This commit is contained in:
@@ -19,6 +19,8 @@ import { ChangeAnalyzer } from '../data/change-analyzer';
|
|||||||
import { compare, Operation } from 'fast-json-patch';
|
import { compare, Operation } from 'fast-json-patch';
|
||||||
import { of as observableOf } from 'rxjs/internal/observable/of';
|
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 { NotificationsServiceStub } from '../../shared/testing/notifications-service.stub';
|
||||||
|
|
||||||
const LINK_NAME = 'test';
|
const LINK_NAME = 'test';
|
||||||
|
|
||||||
@@ -57,8 +59,8 @@ describe('TasksService', () => {
|
|||||||
const linkPath = 'testTask';
|
const linkPath = 'testTask';
|
||||||
const requestService = getMockRequestService();
|
const requestService = getMockRequestService();
|
||||||
const halService: any = new HALEndpointServiceStub(taskEndpoint);
|
const halService: any = new HALEndpointServiceStub(taskEndpoint);
|
||||||
const rdbService = {} as RemoteDataBuildService;
|
const rdbService = getMockRemoteDataBuildService();
|
||||||
const notificationsService = {} as NotificationsService;
|
const notificationsService = new NotificationsServiceStub() as any;
|
||||||
const http = {} as HttpClient;
|
const http = {} as HttpClient;
|
||||||
const comparator = new DummyChangeAnalyzer() as any;
|
const comparator = new DummyChangeAnalyzer() as any;
|
||||||
const objectCache = {
|
const objectCache = {
|
||||||
|
Reference in New Issue
Block a user