mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
Fix process unit test and add activiti apps documentation
This commit is contained in:
committed by
Mario Romano
parent
74fb64458c
commit
96ce41fcec
@@ -153,9 +153,14 @@ describe('ActivitiProcessInstanceListComponent', () => {
|
||||
});
|
||||
|
||||
it('should reload processes when reload() is called', (done) => {
|
||||
spyOn(service, 'getProcessInstances').and.returnValue(Observable.throw('Fake server error'));
|
||||
spyOn(service, 'getProcessInstances').and.returnValue(Observable.of(fakeGlobalProcesses));
|
||||
component.data = new ObjectDataTableAdapter(
|
||||
[],
|
||||
[
|
||||
{type: 'text', key: 'fake-id', title: 'Name'}
|
||||
]
|
||||
);
|
||||
component.state = 'open';
|
||||
component.ngOnInit();
|
||||
component.onSuccess.subscribe( (res) => {
|
||||
expect(res).toBeDefined();
|
||||
expect(component.data).toBeDefined();
|
||||
|
Reference in New Issue
Block a user