enable prefer-const rule for tslint, fix issues (#4409)

* enable prefer-const rule for tslint, fix issues

* Update content-node-selector.component.spec.ts

* Update content-node-selector.component.spec.ts

* fix const

* fix lint issues

* update tests

* update tests

* update tests

* fix code

* fix page class
This commit is contained in:
Denys Vuika
2019-03-25 12:19:33 +00:00
committed by Eugenio Romano
parent 26c5982a1a
commit a7a48e8b2b
581 changed files with 5435 additions and 5402 deletions

View File

@@ -72,7 +72,7 @@ describe('NodeFavoriteDirective', () => {
it('should reset favorites if selection is empty', fakeAsync(() => {
spyOn(alfrescoApiService.getInstance().core.favoritesApi, 'getFavorite').and.returnValue(Promise.resolve());
let selection = [
const selection = [
{ entry: { id: '1', name: 'name1' } }
];
@@ -104,7 +104,7 @@ describe('NodeFavoriteDirective', () => {
{ entry: { id: '2', name: 'name2' } }
];
let change = new SimpleChange(null, selection, true);
const change = new SimpleChange(null, selection, true);
directive.ngOnChanges({'selection': change});
tick();
@@ -185,7 +185,7 @@ describe('NodeFavoriteDirective', () => {
});
it('should not perform action if favorites collection is empty', fakeAsync(() => {
let change = new SimpleChange(null, [], true);
const change = new SimpleChange(null, [], true);
directive.ngOnChanges({'selection': change});
tick();
@@ -330,7 +330,7 @@ describe('NodeFavoriteDirective', () => {
{ entry: { id: '1', name: 'name1', isFavorite: true } }
];
let change = new SimpleChange(null, selection, true);
const change = new SimpleChange(null, selection, true);
directive.ngOnChanges({'selection': change});
tick();
@@ -345,7 +345,7 @@ describe('NodeFavoriteDirective', () => {
{ entry: { id: '1', name: 'name1' } }
];
let change = new SimpleChange(null, selection, true);
const change = new SimpleChange(null, selection, true);
directive.ngOnChanges({'selection': change});
tick();
@@ -359,7 +359,7 @@ describe('NodeFavoriteDirective', () => {
{ entry: { id: '1', name: 'name1' } }
];
let change = new SimpleChange(null, selection, true);
const change = new SimpleChange(null, selection, true);
directive.ngOnChanges({'selection': change});
tick();