mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
committed by
Eugenio Romano
parent
53d96679ea
commit
e39a2b149b
@@ -174,14 +174,14 @@ describe('Activiti Task filter Service', () => {
|
||||
it('should add a filter', (done) => {
|
||||
let filterFake = new FilterRepresentationModel({
|
||||
name: 'FakeNameFilter',
|
||||
assignment: 'fake-assignement'
|
||||
assignment: 'fake-assignment'
|
||||
});
|
||||
|
||||
service.addFilter(filterFake).subscribe((res: FilterRepresentationModel) => {
|
||||
expect(res).toBeDefined();
|
||||
expect(res.id).not.toEqual(null);
|
||||
expect(res.name).toEqual('FakeNameFilter');
|
||||
expect(res.filter.assignment).toEqual('fake-assignement');
|
||||
expect(res.filter.assignment).toEqual('fake-assignment');
|
||||
done();
|
||||
});
|
||||
|
||||
@@ -189,7 +189,7 @@ describe('Activiti Task filter Service', () => {
|
||||
'status': 200,
|
||||
contentType: 'application/json',
|
||||
responseText: JSON.stringify({
|
||||
id: '2233', name: 'FakeNameFilter', filter: { assignment: 'fake-assignement' }
|
||||
id: '2233', name: 'FakeNameFilter', filter: { assignment: 'fake-assignment' }
|
||||
})
|
||||
});
|
||||
});
|
||||
|
@@ -466,7 +466,7 @@ describe('Activiti TaskList Service', () => {
|
||||
let taskId = '1';
|
||||
let filterFake = new FilterRepresentationModel({
|
||||
name: 'FakeNameFilter',
|
||||
assignment: 'fake-assignement',
|
||||
assignment: 'fake-assignment',
|
||||
filter: {
|
||||
processDefinitionKey: '1',
|
||||
assignment: 'fake',
|
||||
|
@@ -342,7 +342,7 @@ export class TaskListService {
|
||||
}
|
||||
|
||||
/**
|
||||
* Unclaims a task for the current user.
|
||||
* Un-claims a task for the current user.
|
||||
* @param taskId ID of the task to unclaim
|
||||
* @returns Null response notifying when the operation is complete
|
||||
*/
|
||||
|
Reference in New Issue
Block a user