[ADF-3591] spellcheck support for code (#3827)

* setup spellcheck
This commit is contained in:
Denys Vuika
2018-10-23 15:05:38 +01:00
committed by Eugenio Romano
parent 53d96679ea
commit e39a2b149b
262 changed files with 1561 additions and 1005 deletions

View File

@@ -110,8 +110,8 @@ export class EcmModelService {
typeCreated => {
this.logService.info('type Created', typeCreated);
this.addPropertyToAType(EcmModelService.MODEL_NAME, formName, form).subscribe(
properyAdded => {
this.logService.info('property Added', properyAdded);
propertyAdded => {
this.logService.info('property Added', propertyAdded);
observer.next(typeCreated);
observer.complete();
},

View File

@@ -49,7 +49,7 @@ describe('FormRenderingService', () => {
expect(type).toBe(UploadWidgetComponent);
});
it('should resolve Uknown widget for unknown field type', () => {
it('should resolve Unknown widget for unknown field type', () => {
let resolver = service.getComponentTypeResolver('missing-type');
let type = resolver(null);
expect(type).toBe(UnknownWidgetComponent);

View File

@@ -328,11 +328,11 @@ describe('Form service', () => {
});
it('should search for Form with modelType=2', (done) => {
let response = { data: [{ id: 1, name: 'findme' }, { id: 2, name: 'testform' }] };
let response = { data: [{ id: 1, name: 'findMe' }, { id: 2, name: 'testForm' }] };
service.searchFrom('findme').subscribe(result => {
service.searchFrom('findMe').subscribe(result => {
expect(jasmine.Ajax.requests.mostRecent().url.endsWith('models?modelType=2')).toBeTruthy();
expect(result.name).toEqual('findme');
expect(result.name).toEqual('findMe');
expect(result.id).toEqual(1);
done();
});

View File

@@ -193,7 +193,7 @@ export class FormService {
)
.pipe(
map(function (forms: any) {
return forms.data.find(formdata => formdata.name === name);
return forms.data.find(formData => formData.name === name);
}),
catchError(err => this.handleError(err))
);
@@ -232,7 +232,7 @@ export class FormService {
* @param processInstanceId ID of the target process
* @returns List of instance variable information
*/
getProcessVarablesById(processInstanceId: string): Observable<any[]> {
getProcessVariablesById(processInstanceId: string): Observable<any[]> {
return from(this.processInstanceVariablesApi.getProcessInstanceVariables(processInstanceId))
.pipe(
map(this.toJson),
@@ -363,7 +363,7 @@ export class FormService {
* @param processId ID of the process to get
* @returns Process instance
*/
getProcessIntance(processId: string): Observable<any> {
getProcessInstance(processId: string): Observable<any> {
return from(this.processApi.getProcessInstance(processId))
.pipe(
map(this.toJson),

View File

@@ -149,7 +149,7 @@ export class ProcessContentService {
* Associates an uploaded file with a process instance.
* @param processInstanceId ID of the target process instance
* @param content File to associate
* @param opts Options supported by JSAPI
* @param opts Options supported by JS-API
* @returns Details of created content
*/
createProcessRelatedContent(processInstanceId: string, content: any, opts?: any): Observable<any> {
@@ -161,7 +161,7 @@ export class ProcessContentService {
* Associates an uploaded file with a task instance.
* @param taskId ID of the target task
* @param file File to associate
* @param opts Options supported by JSAPI
* @param opts Options supported by JS-API
* @returns Details of created content
*/
createTaskRelatedContent(taskId: string, file: any, opts?: any) {

View File

@@ -185,7 +185,7 @@ describe('WidgetVisibilityService', () => {
});
});
describe('should retrive the process variables', () => {
describe('should retrieve the process variables', () => {
let fakeFormWithField = new FormModel(fakeFormJson);
let visibilityObjTest: WidgetVisibilityModel;
let chainedVisibilityObj = new WidgetVisibilityModel();
@@ -528,7 +528,7 @@ describe('WidgetVisibilityService', () => {
});
it('should return undefined for not existing form variable', () => {
let varValue = service.getVariableValue(fakeForm, 'MISTERY_FORM_VARIABLE', null);
let varValue = service.getVariableValue(fakeForm, 'MYSTERY_FORM_VARIABLE', null);
expect(varValue).toBeUndefined();
});