mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-08-07 17:48:54 +00:00
Do not reload process instances in list after starting new instance
Refs #1048
This commit is contained in:
@@ -199,19 +199,6 @@ describe('ActivitiProcessInstanceListComponent', () => {
|
||||
component.reload();
|
||||
});
|
||||
|
||||
it('should avoid emitting onSuccess event when reload() called with emit=false', fakeAsync(() => {
|
||||
spyOn(service, 'getProcessInstances').and.returnValue(Observable.of(fakeGlobalProcesses));
|
||||
component.appId = '1';
|
||||
component.state = 'open';
|
||||
component.processDefinitionKey = null;
|
||||
fixture.detectChanges();
|
||||
tick();
|
||||
let emitSpy = spyOn(component.onSuccess, 'emit');
|
||||
component.reload(false);
|
||||
tick();
|
||||
expect(emitSpy).not.toHaveBeenCalled();
|
||||
}));
|
||||
|
||||
it('should emit row click event', (done) => {
|
||||
let row = new ObjectDataRow({
|
||||
id: 999
|
||||
|
Reference in New Issue
Block a user