fix types

This commit is contained in:
Denys Vuika
2019-10-24 15:08:11 +01:00
parent c8931f7b58
commit 7d12557a08
3 changed files with 3 additions and 3 deletions

View File

@@ -19,7 +19,7 @@ import { FormRepresentation } from '@alfresco/js-api';
export class FormModelActions { export class FormModelActions {
async getFormByName(alfrescoJsApi: any, name: String): Promise<FormRepresentation> { async getFormByName(alfrescoJsApi: any, name: string): Promise<FormRepresentation> {
const forms = await alfrescoJsApi.activiti.editorApi.getForms(); const forms = await alfrescoJsApi.activiti.editorApi.getForms();

View File

@@ -75,7 +75,7 @@ describe('IdentityUserService', () => {
beforeEach(() => { beforeEach(() => {
const store = {}; const store = {};
spyOn(localStorage, 'getItem').and.callFake( (key: string): String => { spyOn(localStorage, 'getItem').and.callFake( (key: string): string => {
return store[key] || null; return store[key] || null;
}); });
spyOn(localStorage, 'setItem').and.callFake((key: string, value: string): string => { spyOn(localStorage, 'setItem').and.callFake((key: string, value: string): string => {

View File

@@ -98,7 +98,7 @@ export class EditProcessFilterCloudComponentPage {
await BrowserActions.click(appNameElement); await BrowserActions.click(appNameElement);
} }
async getApplicationSelected(): Promise<String> { async getApplicationSelected(): Promise<string> {
const applicationDropdown = element(by.css(`[data-automation-id='adf-cloud-edit-process-property-appName']`)); const applicationDropdown = element(by.css(`[data-automation-id='adf-cloud-edit-process-property-appName']`));
return await applicationDropdown.getText(); return await applicationDropdown.getText();
} }