mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-645] added claim and unclaim event for task details action (#3038)
* [ADF-645] added claim and unclaim event for task details action * [ADF-645] added new events to documentation
This commit is contained in:
@@ -108,6 +108,20 @@ describe('TaskDetailsComponent', () => {
|
||||
expect(getTaskDetailsSpy).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it('should send a claim task event when a task is claimed', async(() => {
|
||||
component.claimedTask.subscribe((taskId) => {
|
||||
expect(taskId).toBe('FAKE-TASK-CLAIM');
|
||||
});
|
||||
component.onClaimAction('FAKE-TASK-CLAIM');
|
||||
}));
|
||||
|
||||
it('should send a unclaim task event when a task is unclaimed', async(() => {
|
||||
component.claimedTask.subscribe((taskId) => {
|
||||
expect(taskId).toBe('FAKE-TASK-UNCLAIM');
|
||||
});
|
||||
component.onUnclaimAction('FAKE-TASK-UNCLAIM');
|
||||
}));
|
||||
|
||||
it('should set a placeholder message when taskId not initialised', () => {
|
||||
fixture.detectChanges();
|
||||
expect(fixture.nativeElement.innerText).toBe('ADF_TASK_LIST.DETAILS.MESSAGES.NONE');
|
||||
|
Reference in New Issue
Block a user