mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
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:
committed by
Eugenio Romano
parent
26c5982a1a
commit
a7a48e8b2b
@@ -37,7 +37,7 @@ describe('WebscriptComponent', () => {
|
||||
});
|
||||
|
||||
beforeEach(async(() => {
|
||||
let appConfig: AppConfigService = TestBed.get(AppConfigService);
|
||||
const appConfig: AppConfigService = TestBed.get(AppConfigService);
|
||||
appConfig.config.ecmHost = 'http://localhost:9876/ecm';
|
||||
|
||||
fixture = TestBed.createComponent(WebscriptComponent);
|
||||
@@ -162,7 +162,7 @@ describe('WebscriptComponent', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
let dataTable = {
|
||||
const dataTable = {
|
||||
data: [
|
||||
{id: 1, name: 'Name 1'},
|
||||
{id: 2, name: 'Name 2'}
|
||||
@@ -200,7 +200,7 @@ describe('WebscriptComponent', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
let dataTable = {
|
||||
const dataTable = {
|
||||
data: [
|
||||
{id: 1, name: 'Name 1'},
|
||||
{id: 2, name: 'Name 2'}
|
||||
|
@@ -119,7 +119,7 @@ export class WebscriptComponent implements OnChanges {
|
||||
* @returns the data as datatable
|
||||
*/
|
||||
showDataAsDataTable(data: any) {
|
||||
let datatableData: any = null;
|
||||
const datatableData: any = null;
|
||||
try {
|
||||
|
||||
if (!data.schema) {
|
||||
|
Reference in New Issue
Block a user