tslint: more const fixes (#13035)

This commit is contained in:
Torkel Ödegaard
2018-08-26 20:19:23 +02:00
committed by GitHub
parent 314b645857
commit 35c00891e7
32 changed files with 120 additions and 123 deletions

View File

@@ -12,7 +12,7 @@ jest.mock('app/core/services/context_srv', () => ({
describe('ChangeTracker', () => {
let rootScope;
let location;
let timeout;
const timeout = () => {};
let tracker: ChangeTracker;
let dash;
let scope;

View File

@@ -2,7 +2,7 @@ import { DashboardImportCtrl } from '../dashboard_import_ctrl';
import config from '../../../core/config';
describe('DashboardImportCtrl', function() {
var ctx: any = {};
const ctx: any = {};
let navModelSrv;
let backendSrv;

View File

@@ -8,10 +8,10 @@ jest.mock('app/core/services/context_srv', () => ({}));
describe('DashboardModel', function() {
describe('when creating dashboard with old schema', function() {
var model;
var graph;
var singlestat;
var table;
let model;
let graph;
let singlestat;
let table;
beforeEach(function() {
model = new DashboardModel({
@@ -384,7 +384,8 @@ describe('DashboardModel', function() {
function createRow(options, panelDescriptions: any[]) {
const PANEL_HEIGHT_STEP = GRID_CELL_HEIGHT + GRID_CELL_VMARGIN;
let { collapse, height, showTitle, title, repeat, repeatIteration } = options;
const { collapse, showTitle, title, repeat, repeatIteration } = options;
let { height } = options;
height = height * PANEL_HEIGHT_STEP;
const panels = [];
_.each(panelDescriptions, panelDesc => {