diff --git a/ng2-components/ng2-activiti-analytics/src/components/analytics-report-list.component.ts b/ng2-components/ng2-activiti-analytics/src/components/analytics-report-list.component.ts index 266f4be5aa..a80a98d4ff 100644 --- a/ng2-components/ng2-activiti-analytics/src/components/analytics-report-list.component.ts +++ b/ng2-components/ng2-activiti-analytics/src/components/analytics-report-list.component.ts @@ -22,7 +22,6 @@ import { ReportModel } from '../models/report.model'; import { Observer } from 'rxjs/Observer'; import { Observable } from 'rxjs/Observable'; - @Component({ moduleId: module.id, selector: 'analytics-report-list', @@ -61,7 +60,6 @@ export class AnalyticsReportListComponent implements OnInit { this.getReportListByAppId(); } - getReportListByAppId() { this.analyticsService.getReportList().subscribe( (res: ReportModel[]) => { diff --git a/ng2-components/ng2-activiti-analytics/src/components/analytics.component.spec.ts b/ng2-components/ng2-activiti-analytics/src/components/analytics.component.spec.ts index 52ff7da466..f1bf40c4a9 100644 --- a/ng2-components/ng2-activiti-analytics/src/components/analytics.component.spec.ts +++ b/ng2-components/ng2-activiti-analytics/src/components/analytics.component.spec.ts @@ -38,7 +38,6 @@ export const ANALYTICS_PROVIDERS: any[] = [ AnalyticsService ]; - describe('Show component HTML', () => { let component: any; diff --git a/ng2-components/ng2-activiti-analytics/src/components/analytics.component.ts b/ng2-components/ng2-activiti-analytics/src/components/analytics.component.ts index cb897fe774..4ceb45da21 100644 --- a/ng2-components/ng2-activiti-analytics/src/components/analytics.component.ts +++ b/ng2-components/ng2-activiti-analytics/src/components/analytics.component.ts @@ -171,7 +171,6 @@ export class AnalyticsComponent implements OnInit, OnChanges { this.reportParamQuery.dateRange.endDate = dateRange.endDate; } - onDateRangeIntervalChange(field: any) { this.reset(); this.reportParamQuery.dateRangeInterval = field.value; diff --git a/ng2-components/ng2-activiti-analytics/src/components/widgets/date/date.widget.ts b/ng2-components/ng2-activiti-analytics/src/components/widgets/date/date.widget.ts index 08447f456a..78bf35a398 100644 --- a/ng2-components/ng2-activiti-analytics/src/components/widgets/date/date.widget.ts +++ b/ng2-components/ng2-activiti-analytics/src/components/widgets/date/date.widget.ts @@ -18,7 +18,6 @@ import { Component, ElementRef } from '@angular/core'; import { WidgetComponent } from './../widget.component'; - @Component({ moduleId: module.id, selector: 'date-widget', diff --git a/ng2-components/ng2-activiti-analytics/src/components/widgets/dropdown/dropdown.widget.ts b/ng2-components/ng2-activiti-analytics/src/components/widgets/dropdown/dropdown.widget.ts index b22edf556e..95fafe7ecb 100644 --- a/ng2-components/ng2-activiti-analytics/src/components/widgets/dropdown/dropdown.widget.ts +++ b/ng2-components/ng2-activiti-analytics/src/components/widgets/dropdown/dropdown.widget.ts @@ -18,7 +18,6 @@ import { Component, Input, Output, EventEmitter } from '@angular/core'; import { WidgetComponent } from './../widget.component'; - @Component({ moduleId: module.id, selector: 'dropdown-widget', diff --git a/ng2-components/ng2-activiti-analytics/src/components/widgets/duration/duration.widget.ts b/ng2-components/ng2-activiti-analytics/src/components/widgets/duration/duration.widget.ts index 11ab9ccb46..19a74feca7 100644 --- a/ng2-components/ng2-activiti-analytics/src/components/widgets/duration/duration.widget.ts +++ b/ng2-components/ng2-activiti-analytics/src/components/widgets/duration/duration.widget.ts @@ -19,7 +19,6 @@ import { Component, ElementRef, OnInit } from '@angular/core'; import { NumberWidget } from './../number/number.widget'; import { ReportParameterModel, ParameterValueModel } from './../../../models/report.model'; - @Component({ moduleId: module.id, selector: 'duration-widget', diff --git a/ng2-components/ng2-activiti-analytics/src/components/widgets/number/number.widget.ts b/ng2-components/ng2-activiti-analytics/src/components/widgets/number/number.widget.ts index ca5dab97d3..d5ef372c94 100644 --- a/ng2-components/ng2-activiti-analytics/src/components/widgets/number/number.widget.ts +++ b/ng2-components/ng2-activiti-analytics/src/components/widgets/number/number.widget.ts @@ -18,7 +18,6 @@ import { Component, ElementRef } from '@angular/core'; import { WidgetComponent } from './../widget.component'; - @Component({ moduleId: module.id, selector: 'number-widget', diff --git a/ng2-components/ng2-activiti-analytics/src/models/chart.model.ts b/ng2-components/ng2-activiti-analytics/src/models/chart.model.ts index 30f7db5ba9..00599d3221 100644 --- a/ng2-components/ng2-activiti-analytics/src/models/chart.model.ts +++ b/ng2-components/ng2-activiti-analytics/src/models/chart.model.ts @@ -120,7 +120,6 @@ export class TableChart extends Chart { } } - export class HeatMapChart extends Chart { title: string; titleKey: string; diff --git a/ng2-components/ng2-activiti-analytics/src/models/report.model.ts b/ng2-components/ng2-activiti-analytics/src/models/report.model.ts index d13f61bbcb..8271444d05 100644 --- a/ng2-components/ng2-activiti-analytics/src/models/report.model.ts +++ b/ng2-components/ng2-activiti-analytics/src/models/report.model.ts @@ -101,7 +101,6 @@ export class ParameterValueModel { } } - export class ReportQuery { processDefinitionId: string; status: string; diff --git a/ng2-components/ng2-activiti-analytics/src/services/analytics.service.ts b/ng2-components/ng2-activiti-analytics/src/services/analytics.service.ts index 01f6b161ad..8e87303a80 100644 --- a/ng2-components/ng2-activiti-analytics/src/services/analytics.service.ts +++ b/ng2-components/ng2-activiti-analytics/src/services/analytics.service.ts @@ -205,7 +205,4 @@ export class AnalyticsService { console.error(error); return Observable.throw(error.json().error || 'Server error'); } - - - } diff --git a/ng2-components/ng2-activiti-form/src/components/activiti-form.component.spec.ts b/ng2-components/ng2-activiti-form/src/components/activiti-form.component.spec.ts index dd3a20fde4..49f68f33ad 100644 --- a/ng2-components/ng2-activiti-form/src/components/activiti-form.component.spec.ts +++ b/ng2-components/ng2-activiti-form/src/components/activiti-form.component.spec.ts @@ -105,7 +105,6 @@ describe('ActivitiForm', () => { expect(formComponent.isOutcomeButtonVisible(outcome)).toBeTruthy(); }); - it('should allow controlling [complete] button visibility', () => { let formModel = new FormModel(); let outcome = new FormOutcomeModel(formModel, { id: '$save', name: FormOutcomeModel.SAVE_ACTION }); diff --git a/ng2-components/ng2-activiti-form/src/components/widgets/core/form-field-validator.spec.ts b/ng2-components/ng2-activiti-form/src/components/widgets/core/form-field-validator.spec.ts index d8ea72fb9d..3049242d9b 100644 --- a/ng2-components/ng2-activiti-form/src/components/widgets/core/form-field-validator.spec.ts +++ b/ng2-components/ng2-activiti-form/src/components/widgets/core/form-field-validator.spec.ts @@ -59,7 +59,6 @@ describe('FormFieldValidator', () => { expect(validator.validate(field)).toBeTruthy(); }); - it('should fail for dropdown with empty value', () => { let field = new FormFieldModel(new FormModel(), { type: FormFieldTypes.DROPDOWN, diff --git a/ng2-components/ng2-activiti-form/src/components/widgets/upload/upload.widget.ts b/ng2-components/ng2-activiti-form/src/components/widgets/upload/upload.widget.ts index ffc7c0cd29..45d0acdf7c 100644 --- a/ng2-components/ng2-activiti-form/src/components/widgets/upload/upload.widget.ts +++ b/ng2-components/ng2-activiti-form/src/components/widgets/upload/upload.widget.ts @@ -35,7 +35,6 @@ export class UploadWidget extends WidgetComponent implements OnInit { super(); } - ngOnInit() { if (this.field && this.field.value && diff --git a/ng2-components/ng2-activiti-form/src/services/ecm-model.service.ts b/ng2-components/ng2-activiti-form/src/services/ecm-model.service.ts index c69bfc5bb3..72acfa1413 100644 --- a/ng2-components/ng2-activiti-form/src/services/ecm-model.service.ts +++ b/ng2-components/ng2-activiti-form/src/services/ecm-model.service.ts @@ -128,8 +128,6 @@ export class EcmModelService { public activeEcmModel(modelName: string): Observable { let url = `${this.alfrescoSettingsService.ecmHost}/alfresco/api/-default-/private/alfresco/versions/1/cmm/${modelName}?select=status`; let options = this.getRequestOptions(); - - let body = {status: 'ACTIVE'}; return this.http @@ -141,8 +139,6 @@ export class EcmModelService { public createEcmModel(modelName: string, nameSpace: string): Observable { let url = `${this.alfrescoSettingsService.ecmHost}/alfresco/api/-default-/private/alfresco/versions/1/cmm`; let options = this.getRequestOptions(); - - let body = { status: 'DRAFT', namespaceUri: modelName, namespacePrefix: nameSpace, name: modelName, description: '', author: '' }; @@ -163,7 +159,6 @@ export class EcmModelService { .catch(this.handleError); } - public getEcmType(modelName: string): Observable { let url = `${this.alfrescoSettingsService.ecmHost}/alfresco/api/-default-/private/alfresco/versions/1/cmm/${modelName}/types`; let options = this.getRequestOptions(); diff --git a/ng2-components/ng2-activiti-form/src/services/node.service.spec.ts b/ng2-components/ng2-activiti-form/src/services/node.service.spec.ts index b863d72830..ba7dbd740a 100644 --- a/ng2-components/ng2-activiti-form/src/services/node.service.spec.ts +++ b/ng2-components/ng2-activiti-form/src/services/node.service.spec.ts @@ -163,7 +163,6 @@ describe('NodeService', () => { testdata: 'testdata' }; - service.createNodeMetadata('typeTest', EcmModelService.MODEL_NAMESPACE, data, '/Sites/swsdp/documentLibrary').subscribe(result => { expect(jasmine.Ajax.requests.mostRecent().url.endsWith('-root-/children')).toBeTruthy(); expect(JSON.parse(jasmine.Ajax.requests.mostRecent().params).name).toBeDefined(); @@ -176,6 +175,4 @@ describe('NodeService', () => { responseText: JSON.stringify({}) }); }); - }); - diff --git a/ng2-components/ng2-activiti-processlist/src/models/task-details.model.ts b/ng2-components/ng2-activiti-processlist/src/models/task-details.model.ts index 5ab0361aaa..0b13c30c15 100644 --- a/ng2-components/ng2-activiti-processlist/src/models/task-details.model.ts +++ b/ng2-components/ng2-activiti-processlist/src/models/task-details.model.ts @@ -57,7 +57,6 @@ export class TaskDetailsModel { processInstanceStartUserId: string; taskDefinitionKey: string; - constructor(obj: any) { this.id = obj.id; this.name = obj.name; diff --git a/ng2-components/ng2-activiti-processlist/src/services/activiti-process.service.spec.ts b/ng2-components/ng2-activiti-processlist/src/services/activiti-process.service.spec.ts index 1a7fc11e73..1888e6dbad 100644 --- a/ng2-components/ng2-activiti-processlist/src/services/activiti-process.service.spec.ts +++ b/ng2-components/ng2-activiti-processlist/src/services/activiti-process.service.spec.ts @@ -46,4 +46,3 @@ describe('ActivitiProcessService', () => { done(); }); }); - diff --git a/ng2-components/ng2-activiti-tasklist/src/components/activiti-tasklist.component.spec.ts b/ng2-components/ng2-activiti-tasklist/src/components/activiti-tasklist.component.spec.ts index a59a88e6b5..93d967de73 100644 --- a/ng2-components/ng2-activiti-tasklist/src/components/activiti-tasklist.component.spec.ts +++ b/ng2-components/ng2-activiti-tasklist/src/components/activiti-tasklist.component.spec.ts @@ -22,7 +22,6 @@ import { UserTaskFilterRepresentationModel } from '../models/filter.model'; import { Observable } from 'rxjs/Rx'; import { ObjectDataRow, DataRowEvent, ObjectDataTableAdapter } from 'ng2-alfresco-datatable'; - describe('ActivitiTaskList', () => { let taskList: ActivitiTaskList; diff --git a/ng2-components/ng2-activiti-tasklist/src/components/activiti-tasklist.component.ts b/ng2-components/ng2-activiti-tasklist/src/components/activiti-tasklist.component.ts index 7d10397c07..b67cec102b 100644 --- a/ng2-components/ng2-activiti-tasklist/src/components/activiti-tasklist.component.ts +++ b/ng2-components/ng2-activiti-tasklist/src/components/activiti-tasklist.component.ts @@ -129,7 +129,6 @@ export class ActivitiTaskList implements OnInit, OnChanges { return taskRows; } - /** * The method call the adapter data table component for render the task list * @param tasks diff --git a/ng2-components/ng2-activiti-tasklist/src/models/task-details.model.ts b/ng2-components/ng2-activiti-tasklist/src/models/task-details.model.ts index e9408e7c6d..7407656360 100644 --- a/ng2-components/ng2-activiti-tasklist/src/models/task-details.model.ts +++ b/ng2-components/ng2-activiti-tasklist/src/models/task-details.model.ts @@ -57,7 +57,6 @@ export class TaskDetailsModel { processInstanceStartUserId: string; taskDefinitionKey: string; - constructor(obj?: any) { this.id = obj && obj.id || null; this.name = obj && obj.name || null; diff --git a/ng2-components/ng2-activiti-tasklist/src/services/activiti-tasklist.service.spec.ts b/ng2-components/ng2-activiti-tasklist/src/services/activiti-tasklist.service.spec.ts index eeb28d4d6f..fe51682459 100644 --- a/ng2-components/ng2-activiti-tasklist/src/services/activiti-tasklist.service.spec.ts +++ b/ng2-components/ng2-activiti-tasklist/src/services/activiti-tasklist.service.spec.ts @@ -439,7 +439,6 @@ describe('ActivitiTaskListService', () => { }); }); - it('should get the deployed apps ', (done) => { service.getDeployedApplications().subscribe( (res: any) => { @@ -515,4 +514,3 @@ describe('ActivitiTaskListService', () => { }); }); - diff --git a/ng2-components/ng2-activiti-tasklist/src/services/activiti-tasklist.service.ts b/ng2-components/ng2-activiti-tasklist/src/services/activiti-tasklist.service.ts index 8bc00c94d6..a87b5ac354 100644 --- a/ng2-components/ng2-activiti-tasklist/src/services/activiti-tasklist.service.ts +++ b/ng2-components/ng2-activiti-tasklist/src/services/activiti-tasklist.service.ts @@ -202,7 +202,6 @@ export class ActivitiTaskListService { .map(res => res); } - /** * Return the total number of the tasks by filter * @param requestNode - TaskFilterRepresentationModel @@ -337,5 +336,4 @@ export class ActivitiTaskListService { 'filter': {'sort': 'created-desc', 'name': '', 'state': 'completed', 'assignment': 'involved'} }); } - } diff --git a/ng2-components/ng2-alfresco-core/src/components/context-menu/context-menu-holder.component.ts b/ng2-components/ng2-alfresco-core/src/components/context-menu/context-menu-holder.component.ts index 9f406ed117..59792c47af 100644 --- a/ng2-components/ng2-alfresco-core/src/components/context-menu/context-menu-holder.component.ts +++ b/ng2-components/ng2-alfresco-core/src/components/context-menu/context-menu-holder.component.ts @@ -35,14 +35,11 @@ import { ContextMenuService } from './context-menu.service'; .context-menu { list-style-type: none; position: static; - - height: auto; width: auto; min-width: 124px; padding: 8px 0; margin: 0; - box-shadow: 0 2px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.2),0 1px 5px 0 rgba(0,0,0,.12); border-radius: 2px; } diff --git a/ng2-components/ng2-alfresco-datatable/src/components/datatable/datatable.component.spec.ts b/ng2-components/ng2-alfresco-datatable/src/components/datatable/datatable.component.spec.ts index c8ed09f82e..18e214be4c 100644 --- a/ng2-components/ng2-alfresco-datatable/src/components/datatable/datatable.component.spec.ts +++ b/ng2-components/ng2-alfresco-datatable/src/components/datatable/datatable.component.spec.ts @@ -181,7 +181,6 @@ describe('DataTable', () => { dataTable.ngAfterViewChecked(); }); - it('should invert "select all" status', () => { expect(dataTable.isSelectAllChecked).toBeFalsy(); dataTable.onSelectAllClick(null); @@ -190,7 +189,6 @@ describe('DataTable', () => { expect(dataTable.isSelectAllChecked).toBeFalsy(); }); - it('should update rows on "select all" click', () => { let data = new ObjectDataTableAdapter([{}, {}, {}], []); let rows = data.getRows(); diff --git a/ng2-components/ng2-alfresco-datatable/src/components/pagination/pagination.component.ts b/ng2-components/ng2-alfresco-datatable/src/components/pagination/pagination.component.ts index c465b73187..6b848d7ffe 100644 --- a/ng2-components/ng2-alfresco-datatable/src/components/pagination/pagination.component.ts +++ b/ng2-components/ng2-alfresco-datatable/src/components/pagination/pagination.component.ts @@ -77,5 +77,3 @@ export class PaginationComponent { this.provider.skipCount -= this.provider.maxItems; } } - - diff --git a/ng2-components/ng2-alfresco-documentlist/src/components/content-action-list.spec.ts b/ng2-components/ng2-alfresco-documentlist/src/components/content-action-list.spec.ts index 2859e34bac..00a5448417 100644 --- a/ng2-components/ng2-alfresco-documentlist/src/components/content-action-list.spec.ts +++ b/ng2-components/ng2-alfresco-documentlist/src/components/content-action-list.spec.ts @@ -56,5 +56,3 @@ describe('ContentColumnList', () => { }); }); - - diff --git a/ng2-components/ng2-alfresco-documentlist/src/components/document-list.spec.ts b/ng2-components/ng2-alfresco-documentlist/src/components/document-list.spec.ts index 8e2da843bf..8315e839a3 100644 --- a/ng2-components/ng2-alfresco-documentlist/src/components/document-list.spec.ts +++ b/ng2-components/ng2-alfresco-documentlist/src/components/document-list.spec.ts @@ -116,7 +116,6 @@ describe('DocumentList', () => { documentMenu ]; - let actions = documentList.getNodeActions(new FolderNode()); expect(actions.length).toBe(1); expect(actions[0]).toBe(folderMenu); diff --git a/ng2-components/ng2-alfresco-documentlist/src/data/share-datatable-adapter.spec.ts b/ng2-components/ng2-alfresco-documentlist/src/data/share-datatable-adapter.spec.ts index 1812a19032..ee12c9b5a1 100644 --- a/ng2-components/ng2-alfresco-documentlist/src/data/share-datatable-adapter.spec.ts +++ b/ng2-components/ng2-alfresco-documentlist/src/data/share-datatable-adapter.spec.ts @@ -262,7 +262,6 @@ describe('ShareDataTableAdapter', () => { let file = new FileNode(); file.entry['icon'] = imageUrl; - let adapter = new ShareDataTableAdapter(null, basePath, null); let row = new ShareDataRow(file); let col = { type: 'image', key: 'icon' }; diff --git a/ng2-components/ng2-alfresco-documentlist/src/services/folder-actions.service.spec.ts b/ng2-components/ng2-alfresco-documentlist/src/services/folder-actions.service.spec.ts index d1fe4091f9..9e5d8b8b7b 100644 --- a/ng2-components/ng2-alfresco-documentlist/src/services/folder-actions.service.spec.ts +++ b/ng2-components/ng2-alfresco-documentlist/src/services/folder-actions.service.spec.ts @@ -87,7 +87,6 @@ describe('FolderActionsService', () => { expect(window.alert).toHaveBeenCalledWith('standard folder action 2'); }); - // TODO: to be removed once demo handlers are removed it('should register demo handlers', () => { expect(service.getHandler('system1')).toBeDefined(); diff --git a/ng2-components/ng2-alfresco-search/src/components/alfresco-search-autocomplete.component.ts b/ng2-components/ng2-alfresco-search/src/components/alfresco-search-autocomplete.component.ts index 313bbb9e70..d4a5adb8bf 100644 --- a/ng2-components/ng2-alfresco-search/src/components/alfresco-search-autocomplete.component.ts +++ b/ng2-components/ng2-alfresco-search/src/components/alfresco-search-autocomplete.component.ts @@ -20,7 +20,6 @@ import { AlfrescoSearchService } from './../services/alfresco-search.service'; import { AlfrescoThumbnailService } from './../services/alfresco-thumbnail.service'; import { AlfrescoTranslationService } from 'ng2-alfresco-core'; - @Component({ moduleId: module.id, selector: 'alfresco-search-autocomplete', diff --git a/ng2-components/ng2-alfresco-search/src/components/alfresco-search-control.component.spec.ts b/ng2-components/ng2-alfresco-search/src/components/alfresco-search-control.component.spec.ts index f1836f456a..b8321de775 100644 --- a/ng2-components/ng2-alfresco-search/src/components/alfresco-search-control.component.spec.ts +++ b/ng2-components/ng2-alfresco-search/src/components/alfresco-search-control.component.spec.ts @@ -30,7 +30,6 @@ import { } from 'ng2-alfresco-core'; import { AlfrescoSearchService } from '../services/alfresco-search.service'; - describe('AlfrescoSearchControlComponent', () => { let fixture: ComponentFixture; diff --git a/ng2-components/ng2-alfresco-search/src/components/alfresco-search-control.component.ts b/ng2-components/ng2-alfresco-search/src/components/alfresco-search-control.component.ts index 125425276a..3c44af48f9 100644 --- a/ng2-components/ng2-alfresco-search/src/components/alfresco-search-control.component.ts +++ b/ng2-components/ng2-alfresco-search/src/components/alfresco-search-control.component.ts @@ -20,7 +20,6 @@ import { Component, Input, Output, OnInit, ElementRef, EventEmitter, ViewChild } import { AlfrescoTranslationService } from 'ng2-alfresco-core'; import { SearchTermValidator } from './../forms/search-term-validator'; - @Component({ moduleId: module.id, selector: 'alfresco-search-control', diff --git a/ng2-components/ng2-alfresco-tag/index.ts b/ng2-components/ng2-alfresco-tag/index.ts index 5a9979cef5..31c7931c89 100644 --- a/ng2-components/ng2-alfresco-tag/index.ts +++ b/ng2-components/ng2-alfresco-tag/index.ts @@ -62,4 +62,3 @@ export class TagModule { }; } } - diff --git a/ng2-components/ng2-alfresco-tag/src/components/tag-actions.component.spec.ts b/ng2-components/ng2-alfresco-tag/src/components/tag-actions.component.spec.ts index 17d39f4a4a..a8e2fc8145 100644 --- a/ng2-components/ng2-alfresco-tag/src/components/tag-actions.component.spec.ts +++ b/ng2-components/ng2-alfresco-tag/src/components/tag-actions.component.spec.ts @@ -161,4 +161,3 @@ describe('Test ng2-alfresco-tag Tag actions list', () => { }); }); }); - diff --git a/ng2-components/ng2-alfresco-tag/src/components/tag-list.component.spec.ts b/ng2-components/ng2-alfresco-tag/src/components/tag-list.component.spec.ts index 73a4df705b..cac7963870 100644 --- a/ng2-components/ng2-alfresco-tag/src/components/tag-list.component.spec.ts +++ b/ng2-components/ng2-alfresco-tag/src/components/tag-list.component.spec.ts @@ -15,7 +15,6 @@ * limitations under the License. */ - import { ComponentFixture, TestBed, async } from '@angular/core/testing'; import { TagList } from '../components/tag-list.component'; import { DebugElement } from '@angular/core'; @@ -76,7 +75,6 @@ describe('Test ng2-alfresco-tag Tag list All ECM', () => { fixture.detectChanges(); }); - describe('Rendering tests', () => { beforeEach(() => { diff --git a/ng2-components/ng2-alfresco-tag/src/components/tag-node-list.component.spec.ts b/ng2-components/ng2-alfresco-tag/src/components/tag-node-list.component.spec.ts index f5e99f0efb..eaa5e6828e 100644 --- a/ng2-components/ng2-alfresco-tag/src/components/tag-node-list.component.spec.ts +++ b/ng2-components/ng2-alfresco-tag/src/components/tag-node-list.component.spec.ts @@ -142,4 +142,3 @@ describe('Test ng2-alfresco-tag Tag relative node list', () => { }); }); }); - diff --git a/ng2-components/ng2-alfresco-tag/src/services/tag.service.spec.ts b/ng2-components/ng2-alfresco-tag/src/services/tag.service.spec.ts index ce66cbdb6a..aa79f291f8 100644 --- a/ng2-components/ng2-alfresco-tag/src/services/tag.service.spec.ts +++ b/ng2-components/ng2-alfresco-tag/src/services/tag.service.spec.ts @@ -117,4 +117,3 @@ describe('Tag service', () => { }); }); }); - diff --git a/ng2-components/ng2-alfresco-upload/src/components/file-uploading-dialog.component.spec.ts b/ng2-components/ng2-alfresco-upload/src/components/file-uploading-dialog.component.spec.ts index c1d11ca8ac..5f24a41908 100644 --- a/ng2-components/ng2-alfresco-upload/src/components/file-uploading-dialog.component.spec.ts +++ b/ng2-components/ng2-alfresco-upload/src/components/file-uploading-dialog.component.spec.ts @@ -15,7 +15,6 @@ * limitations under the License. */ - import { ComponentFixture, TestBed, async } from '@angular/core/testing'; import { FileUploadingDialogComponent } from './file-uploading-dialog.component'; import { FileUploadingListComponent } from './file-uploading-list.component'; @@ -76,7 +75,6 @@ describe('Test ng2-alfresco-upload FileUploadDialog', () => { fixture.detectChanges(); }); - it('should render completed upload 1 when an element is added to Observer', () => { component._uploaderService.updateFileCounterStream(1); fixture.detectChanges(); @@ -118,4 +116,3 @@ describe('Test ng2-alfresco-upload FileUploadDialog', () => { expect(element.querySelector('.minimize-button').getAttribute('class')).toEqual('minimize-button active'); }); }); - diff --git a/ng2-components/ng2-alfresco-upload/src/components/file-uploading-list.component.ts b/ng2-components/ng2-alfresco-upload/src/components/file-uploading-list.component.ts index ba164c54cb..f5eb19c421 100644 --- a/ng2-components/ng2-alfresco-upload/src/components/file-uploading-list.component.ts +++ b/ng2-components/ng2-alfresco-upload/src/components/file-uploading-list.component.ts @@ -15,7 +15,6 @@ * limitations under the License. */ - import { Component, ElementRef, Input } from '@angular/core'; import { FileModel } from '../models/file.model'; diff --git a/ng2-components/ng2-alfresco-upload/src/components/upload-button.component.spec.ts b/ng2-components/ng2-alfresco-upload/src/components/upload-button.component.spec.ts index 5466709cf6..598c632cde 100644 --- a/ng2-components/ng2-alfresco-upload/src/components/upload-button.component.spec.ts +++ b/ng2-components/ng2-alfresco-upload/src/components/upload-button.component.spec.ts @@ -157,4 +157,3 @@ describe('Test ng2-alfresco-upload UploadButton', () => { component.onDirectoryAdded(fakeEvent); }); }); - diff --git a/ng2-components/ng2-alfresco-upload/src/components/upload-button.component.ts b/ng2-components/ng2-alfresco-upload/src/components/upload-button.component.ts index 5b4b357a14..2f6548ce5a 100644 --- a/ng2-components/ng2-alfresco-upload/src/components/upload-button.component.ts +++ b/ng2-components/ng2-alfresco-upload/src/components/upload-button.component.ts @@ -15,7 +15,6 @@ * limitations under the License. */ - import { Component, ViewChild, ElementRef, Input, Output, EventEmitter } from '@angular/core'; import { UploadService } from '../services/upload.service'; import { FileModel } from '../models/file.model'; @@ -86,7 +85,6 @@ export class UploadButtonComponent { translate: AlfrescoTranslationService; - constructor(public el: ElementRef, private _uploaderService: UploadService, translate: AlfrescoTranslationService) { this.translate = translate; translate.addTranslationFolder('node_modules/ng2-alfresco-upload/dist/src'); diff --git a/ng2-components/ng2-alfresco-upload/src/components/upload-drag-area.component.spec.ts b/ng2-components/ng2-alfresco-upload/src/components/upload-drag-area.component.spec.ts index b82e3465b2..a53bb3f9aa 100644 --- a/ng2-components/ng2-alfresco-upload/src/components/upload-drag-area.component.spec.ts +++ b/ng2-components/ng2-alfresco-upload/src/components/upload-drag-area.component.spec.ts @@ -224,4 +224,3 @@ describe('Test ng2-alfresco-upload UploadDragArea', () => { component.onFolderEntityDropped(folderEntry); }); }); - diff --git a/ng2-components/ng2-alfresco-upload/src/directives/file-draggable.directive.ts b/ng2-components/ng2-alfresco-upload/src/directives/file-draggable.directive.ts index e8cf85185a..6718ab97a6 100644 --- a/ng2-components/ng2-alfresco-upload/src/directives/file-draggable.directive.ts +++ b/ng2-components/ng2-alfresco-upload/src/directives/file-draggable.directive.ts @@ -145,7 +145,6 @@ export class FileDraggableDirective { $event.preventDefault(); } - /** * Return the value of input focus class * @returns {boolean} diff --git a/ng2-components/ng2-alfresco-upload/src/services/upload.service.spec.ts b/ng2-components/ng2-alfresco-upload/src/services/upload.service.spec.ts index 50e8c15e21..3f88bdece5 100644 --- a/ng2-components/ng2-alfresco-upload/src/services/upload.service.spec.ts +++ b/ng2-components/ng2-alfresco-upload/src/services/upload.service.spec.ts @@ -239,4 +239,3 @@ describe('Test ng2-alfresco-upload', () => { }); }); }); - diff --git a/ng2-components/ng2-alfresco-userinfo/index.ts b/ng2-components/ng2-alfresco-userinfo/index.ts index 41ab68dfa4..6ad3f01a20 100644 --- a/ng2-components/ng2-alfresco-userinfo/index.ts +++ b/ng2-components/ng2-alfresco-userinfo/index.ts @@ -59,4 +59,3 @@ export class UserInfoComponentModule { }; } } - diff --git a/ng2-components/ng2-alfresco-userinfo/src/components/user-info.component.spec.ts b/ng2-components/ng2-alfresco-userinfo/src/components/user-info.component.spec.ts index abf318c877..70ef809084 100644 --- a/ng2-components/ng2-alfresco-userinfo/src/components/user-info.component.spec.ts +++ b/ng2-components/ng2-alfresco-userinfo/src/components/user-info.component.spec.ts @@ -23,7 +23,6 @@ import { FakeBpmUserService } from '../testing/fake-bpm-user.service'; import { AlfrescoAuthenticationService, AlfrescoContentService } from 'ng2-alfresco-core'; import { ComponentFixture, TestBed, async } from '@angular/core/testing'; - class StubAuthentication { isEcmConnected: boolean; isBpmConnected: boolean; @@ -37,7 +36,6 @@ class StubAlfrescoContentService { getContentUrl() { return 'fake/url/image/for/ecm/user'; } ; } - describe('User info component', () => { let userInfoComp: UserInfoComponent; diff --git a/ng2-components/ng2-alfresco-userinfo/src/services/bpm-user.service.ts b/ng2-components/ng2-alfresco-userinfo/src/services/bpm-user.service.ts index 1c0dff5bce..b2cd97fadb 100644 --- a/ng2-components/ng2-alfresco-userinfo/src/services/bpm-user.service.ts +++ b/ng2-components/ng2-alfresco-userinfo/src/services/bpm-user.service.ts @@ -75,7 +75,6 @@ export class BpmUserService { return this.authService.getAlfrescoApi().activiti.profileApi.getProfile(); } - /** * Throw the error * @param error diff --git a/ng2-components/ng2-alfresco-userinfo/src/testing/fake-bpm-user.service.ts b/ng2-components/ng2-alfresco-userinfo/src/testing/fake-bpm-user.service.ts index b7a2f87d91..c8eaeb2ab1 100644 --- a/ng2-components/ng2-alfresco-userinfo/src/testing/fake-bpm-user.service.ts +++ b/ng2-components/ng2-alfresco-userinfo/src/testing/fake-bpm-user.service.ts @@ -93,6 +93,4 @@ export class FakeBpmUserService { respondWithTheUserWithImage() { this.userNeeded = 0; } - - } diff --git a/ng2-components/ng2-alfresco-viewer/src/assets/event.mock.ts b/ng2-components/ng2-alfresco-viewer/src/assets/event.mock.ts index bed6b070e5..2cb9c114cb 100644 --- a/ng2-components/ng2-alfresco-viewer/src/assets/event.mock.ts +++ b/ng2-components/ng2-alfresco-viewer/src/assets/event.mock.ts @@ -15,7 +15,6 @@ * limitations under the License. */ - export class EventMock { static keyDown(key: any) { @@ -34,5 +33,3 @@ export class EventMock { window.dispatchEvent(new Event('resize')); } } - - diff --git a/ng2-components/ng2-alfresco-viewer/src/componets/imgViewer.component.spec.ts b/ng2-components/ng2-alfresco-viewer/src/componets/imgViewer.component.spec.ts index 142d8988f4..f7fc9c562f 100644 --- a/ng2-components/ng2-alfresco-viewer/src/componets/imgViewer.component.spec.ts +++ b/ng2-components/ng2-alfresco-viewer/src/componets/imgViewer.component.spec.ts @@ -74,4 +74,3 @@ describe('Test ng2-alfresco-viewer Img viewer component ', () => { expect(element.querySelector('#viewer-image').getAttribute('alt')).toEqual('fake-name'); }); }); - diff --git a/ng2-components/ng2-alfresco-viewer/src/componets/pdfViewer.component.spec.ts b/ng2-components/ng2-alfresco-viewer/src/componets/pdfViewer.component.spec.ts index a462cd12c3..c99b5e9532 100644 --- a/ng2-components/ng2-alfresco-viewer/src/componets/pdfViewer.component.spec.ts +++ b/ng2-components/ng2-alfresco-viewer/src/componets/pdfViewer.component.spec.ts @@ -15,7 +15,6 @@ * limitations under the License. */ - import { ComponentFixture, TestBed, async } from '@angular/core/testing'; import { RenderingQueueServices } from '../services/rendering-queue.services'; import { PdfViewerComponent } from './pdfViewer.component'; @@ -275,4 +274,3 @@ describe('Test ng2-alfresco-viewer PdfViewer component', () => { }); }); }); - diff --git a/ng2-components/ng2-alfresco-viewer/src/componets/pdfViewer.component.ts b/ng2-components/ng2-alfresco-viewer/src/componets/pdfViewer.component.ts index 91ac2b05ee..3b14bcb775 100644 --- a/ng2-components/ng2-alfresco-viewer/src/componets/pdfViewer.component.ts +++ b/ng2-components/ng2-alfresco-viewer/src/componets/pdfViewer.component.ts @@ -123,7 +123,6 @@ export class PdfViewerComponent { this.pdfViewer.setDocument(pdfDocument); } - /** * Method to scale the page current support implementation * @@ -217,7 +216,6 @@ export class PdfViewerComponent { return (newScale === oldScale); } - /** * method to check if is a land scape view * diff --git a/ng2-components/ng2-alfresco-viewer/src/componets/viewer.component.ts b/ng2-components/ng2-alfresco-viewer/src/componets/viewer.component.ts index 094faa139c..1e86ac8dd7 100644 --- a/ng2-components/ng2-alfresco-viewer/src/componets/viewer.component.ts +++ b/ng2-components/ng2-alfresco-viewer/src/componets/viewer.component.ts @@ -154,7 +154,6 @@ export class ViewerComponent { return this.isImageExtension() || this.isImageMimeType(); } - /** * Check if the content is a media through the extension or mime type * diff --git a/ng2-components/ng2-alfresco-viewer/src/services/rendering-queue.services.spec.ts b/ng2-components/ng2-alfresco-viewer/src/services/rendering-queue.services.spec.ts index be97b06652..d8a3db096a 100644 --- a/ng2-components/ng2-alfresco-viewer/src/services/rendering-queue.services.spec.ts +++ b/ng2-components/ng2-alfresco-viewer/src/services/rendering-queue.services.spec.ts @@ -38,4 +38,3 @@ describe('RenderingQueueServices', () => { expect(service.CLEANUP_TIMEOUT).toEqual(30000); }); }); -