mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
tslint arrow-parens rule (#4003)
This commit is contained in:
@@ -58,9 +58,9 @@ export class DownloadZipDialogComponent implements OnInit {
|
||||
|
||||
const promise: any = this.apiService.getInstance().core.downloadsApi.createDownload({ nodeIds });
|
||||
|
||||
promise.on('progress', progress => this.logService.log('Progress', progress));
|
||||
promise.on('error', error => this.logService.error('Error', error));
|
||||
promise.on('abort', data => this.logService.log('Abort', data));
|
||||
promise.on('progress', (progress) => this.logService.log('Progress', progress));
|
||||
promise.on('error', (error) => this.logService.error('Error', error));
|
||||
promise.on('abort', (data) => this.logService.log('Abort', data));
|
||||
|
||||
promise.on('success', (data: DownloadEntry) => {
|
||||
if (data && data.entry && data.entry.id) {
|
||||
|
@@ -145,7 +145,7 @@ describe('FolderDialogComponent', () => {
|
||||
|
||||
it('should not call dialog to close if submit fails', () => {
|
||||
spyOn(nodesApi, 'updateNode').and.returnValue(throwError('error'));
|
||||
spyOn(component, 'handleError').and.callFake(val => val);
|
||||
spyOn(component, 'handleError').and.callFake((val) => val);
|
||||
|
||||
component.submit();
|
||||
|
||||
@@ -254,7 +254,7 @@ describe('FolderDialogComponent', () => {
|
||||
|
||||
it('should not call dialog to close if submit fails', () => {
|
||||
spyOn(nodesApi, 'createFolder').and.returnValue(throwError('error'));
|
||||
spyOn(component, 'handleError').and.callFake(val => val);
|
||||
spyOn(component, 'handleError').and.callFake((val) => val);
|
||||
|
||||
component.form.controls['name'].setValue('name');
|
||||
component.form.controls['description'].setValue('description');
|
||||
|
@@ -85,10 +85,10 @@ export class NodeLockDialogComponent implements OnInit {
|
||||
|
||||
submit(): void {
|
||||
this.toggleLock()
|
||||
.then(node => {
|
||||
.then((node) => {
|
||||
this.data.node.isLocked = this.form.value.isLocked;
|
||||
this.dialog.close(node.entry);
|
||||
})
|
||||
.catch(error => this.data.onError(error));
|
||||
.catch((error) => this.data.onError(error));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user