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

Lint
This commit is contained in:
Alessandro Martelli
2021-01-29 19:31:54 +01:00
parent c65dfc7303
commit 54c405994c
12 changed files with 34 additions and 34 deletions

View File

@@ -1,5 +1,5 @@
import { ChangeDetectionStrategy, NO_ERRORS_SCHEMA } from '@angular/core';
import { async, ComponentFixture, fakeAsync, TestBed, tick, waitForAsync } from '@angular/core/testing';
import { ComponentFixture, fakeAsync, TestBed, tick, waitForAsync } from '@angular/core/testing';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
import { of as observableOf } from 'rxjs';
@@ -104,7 +104,7 @@ describe('ClaimedSearchResultListElementComponent', () => {
const actionPayload: any = { reloadedObject: {}};
const actionsComponent = fixture.debugElement.query(By.css('ds-claimed-task-actions'));
actionsComponent.triggerEventHandler('processCompleted', actionPayload)
actionsComponent.triggerEventHandler('processCompleted', actionPayload);
tick();
expect(component.reloadedObject.emit).toHaveBeenCalledWith(actionPayload.reloadedObject);

View File

@@ -80,7 +80,7 @@ describe('ItemMyDSpaceResultListElementComponent', () => {
const actionPayload: any = { reloadedObject: {}};
const actionsComponent = fixture.debugElement.query(By.css('ds-item-actions'));
actionsComponent.triggerEventHandler('processCompleted', actionPayload)
actionsComponent.triggerEventHandler('processCompleted', actionPayload);
tick();
expect(component.reloadedObject.emit).toHaveBeenCalledWith(actionPayload.reloadedObject);

View File

@@ -1,4 +1,4 @@
import { ChangeDetectionStrategy, Injector, NO_ERRORS_SCHEMA } from '@angular/core';
import { ChangeDetectionStrategy, NO_ERRORS_SCHEMA } from '@angular/core';
import { waitForAsync, ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testing';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
@@ -103,7 +103,7 @@ describe('PoolSearchResultListElementComponent', () => {
spyOn(component.reloadedObject, 'emit').and.callThrough();
const actionPayload: any = { reloadedObject: {}};
const actionsComponents = fixture.debugElement.query(By.css('ds-pool-task-actions'));
actionsComponents.triggerEventHandler('processCompleted', actionPayload)
actionsComponents.triggerEventHandler('processCompleted', actionPayload);
tick();
expect(component.reloadedObject.emit).toHaveBeenCalledWith(actionPayload.reloadedObject);

View File

@@ -101,7 +101,7 @@ describe('WorkflowItemSearchResultListElementComponent', () => {
const actionPayload: any = { reloadedObject: {}};
const actionsComponent = fixture.debugElement.query(By.css('ds-workflowitem-actions'));
actionsComponent.triggerEventHandler('processCompleted', actionPayload)
actionsComponent.triggerEventHandler('processCompleted', actionPayload);
tick();
expect(component.reloadedObject.emit).toHaveBeenCalledWith(actionPayload.reloadedObject);

View File

@@ -101,7 +101,7 @@ describe('WorkspaceItemSearchResultListElementComponent', () => {
const actionPayload: any = { reloadedObject: {}};
const actionsComponent = fixture.debugElement.query(By.css('ds-workspaceitem-actions'));
actionsComponent.triggerEventHandler('processCompleted', actionPayload)
actionsComponent.triggerEventHandler('processCompleted', actionPayload);
tick();
expect(component.reloadedObject.emit).toHaveBeenCalledWith(actionPayload.reloadedObject);