added no-angle-bracket-type-assertion rule and updatet files to follow rule (#13115)

This commit is contained in:
Patrick O'Carroll
2018-09-03 11:30:44 +02:00
committed by Torkel Ödegaard
parent 7837ee4466
commit b8d82df97e
30 changed files with 73 additions and 72 deletions

View File

@@ -3,7 +3,7 @@ import gfunc from '../gfunc';
import { GraphiteQueryCtrl } from '../query_ctrl';
describe('GraphiteQueryCtrl', () => {
const ctx = <any>{
const ctx = {
datasource: {
metricFindQuery: jest.fn(() => Promise.resolve([])),
getFuncDefs: jest.fn(() => Promise.resolve(gfunc.getFuncDefs('1.0'))),
@@ -15,7 +15,7 @@ describe('GraphiteQueryCtrl', () => {
panelCtrl: {
refresh: jest.fn(),
},
};
} as any;
ctx.panelCtrl.panel = {
targets: [ctx.target],