mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-NO-ISSUE] update e2e js-api 3 (#4124)
* update e2e js-api node * fix protractor import * use new client * fix protractor conf comaptibility * processClient fix * new js-api * fix new import * fix identity call * fix identity call * remove aut param * fix model * fix model * increase timeout CS bigFile * Refactor task details e2e tests * Fix e2e test * Rebase branch
This commit is contained in:
@@ -27,7 +27,7 @@ describe('Activiti TaskList Cloud Service', () => {
|
||||
let service: TaskListCloudService;
|
||||
let alfrescoApiMock: AlfrescoApiServiceMock;
|
||||
|
||||
function returFakeTaskListResults() {
|
||||
function returnFakeTaskListResults() {
|
||||
return {
|
||||
oauth2Auth: {
|
||||
callCustomApi : () => {
|
||||
@@ -72,7 +72,7 @@ describe('Activiti TaskList Cloud Service', () => {
|
||||
|
||||
it('should return the tasks', (done) => {
|
||||
let taskRequest: TaskQueryCloudRequestModel = <TaskQueryCloudRequestModel> { appName: 'fakeName' };
|
||||
spyOn(alfrescoApiMock, 'getInstance').and.callFake(returFakeTaskListResults);
|
||||
spyOn(alfrescoApiMock, 'getInstance').and.callFake(returnFakeTaskListResults);
|
||||
service.getTaskByRequest(taskRequest).subscribe((res) => {
|
||||
expect(res).toBeDefined();
|
||||
expect(res).not.toBeNull();
|
||||
|
Reference in New Issue
Block a user