added this:any to functions and changed functions to arrowfunctions

This commit is contained in:
Patrick O'Carroll
2018-08-30 10:49:18 +02:00
parent 80d6ef535d
commit a8547ae36e
18 changed files with 53 additions and 62 deletions

View File

@@ -3,7 +3,7 @@ import { VariableSrv } from '../variable_srv';
import moment from 'moment';
import $q from 'q';
describe('VariableSrv', function() {
describe('VariableSrv', function(this: any) {
const ctx = <any>{
datasourceSrv: {},
timeSrv: {

View File

@@ -4,7 +4,7 @@ import _ from 'lodash';
import { VariableSrv } from '../variable_srv';
import $q from 'q';
describe('VariableSrv init', function() {
describe('VariableSrv init', function(this: any) {
const templateSrv = {
init: vars => {
this.variables = vars;