mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
tslint: more const fixes (#13035)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user