From 7d12557a08a680bdfb0298417c47a3e688f8db83 Mon Sep 17 00:00:00 2001 From: Denys Vuika Date: Thu, 24 Oct 2019 15:08:11 +0100 Subject: [PATCH] fix types --- e2e/actions/APS/formModel.actions.ts | 2 +- lib/core/services/identity-user.service.spec.ts | 2 +- .../pages/edit-process-filter-cloud-component.page.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/e2e/actions/APS/formModel.actions.ts b/e2e/actions/APS/formModel.actions.ts index f5fea2f2d7..fc1d638cbf 100644 --- a/e2e/actions/APS/formModel.actions.ts +++ b/e2e/actions/APS/formModel.actions.ts @@ -19,7 +19,7 @@ import { FormRepresentation } from '@alfresco/js-api'; export class FormModelActions { - async getFormByName(alfrescoJsApi: any, name: String): Promise { + async getFormByName(alfrescoJsApi: any, name: string): Promise { const forms = await alfrescoJsApi.activiti.editorApi.getForms(); diff --git a/lib/core/services/identity-user.service.spec.ts b/lib/core/services/identity-user.service.spec.ts index 257c272415..f292a16f19 100644 --- a/lib/core/services/identity-user.service.spec.ts +++ b/lib/core/services/identity-user.service.spec.ts @@ -75,7 +75,7 @@ describe('IdentityUserService', () => { beforeEach(() => { const store = {}; - spyOn(localStorage, 'getItem').and.callFake( (key: string): String => { + spyOn(localStorage, 'getItem').and.callFake( (key: string): string => { return store[key] || null; }); spyOn(localStorage, 'setItem').and.callFake((key: string, value: string): string => { diff --git a/lib/testing/src/lib/process-services-cloud/pages/edit-process-filter-cloud-component.page.ts b/lib/testing/src/lib/process-services-cloud/pages/edit-process-filter-cloud-component.page.ts index 1ababb9d48..1cfc64a8a7 100644 --- a/lib/testing/src/lib/process-services-cloud/pages/edit-process-filter-cloud-component.page.ts +++ b/lib/testing/src/lib/process-services-cloud/pages/edit-process-filter-cloud-component.page.ts @@ -98,7 +98,7 @@ export class EditProcessFilterCloudComponentPage { await BrowserActions.click(appNameElement); } - async getApplicationSelected(): Promise { + async getApplicationSelected(): Promise { const applicationDropdown = element(by.css(`[data-automation-id='adf-cloud-edit-process-property-appName']`)); return await applicationDropdown.getText(); }