diff --git a/ng2-components/ng2-activiti-processlist/src/components/activiti-processlist.component.spec.ts b/ng2-components/ng2-activiti-processlist/src/components/activiti-processlist.component.spec.ts index bf8ecc35c6..fa30504ab5 100644 --- a/ng2-components/ng2-activiti-processlist/src/components/activiti-processlist.component.spec.ts +++ b/ng2-components/ng2-activiti-processlist/src/components/activiti-processlist.component.spec.ts @@ -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(); diff --git a/ng2-components/ng2-activiti-tasklist/README.md b/ng2-components/ng2-activiti-tasklist/README.md index eb5ea9f3c9..2eb7821a25 100644 --- a/ng2-components/ng2-activiti-tasklist/README.md +++ b/ng2-components/ng2-activiti-tasklist/README.md @@ -291,6 +291,26 @@ This can be changed by adding the following custom html template: ``` +## Basic usage example Activiti Apps + +The component shows all the available apps. + +```html + +``` + +#### Events + +| Name | Description | +| --- | --- | +| `appClick` | Invoked when an app is clicked | + +#### Options + +| Name | Type | Required | Description | +| --- | --- | --- | --- | +| `layoutType` | {string} | required | Define the layout of the apps. There are two possible values: GRID or LIST. | + ## Basic usage example Activiti Filter The component shows all the available filters.