mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
noImplicitAny: 1670 errors (#18035)
* Sub 2000 errors * Down to 1670 errors * Minor fixes
This commit is contained in:
committed by
Torkel Ödegaard
parent
6aa58182c7
commit
e1cec1069c
@@ -2,8 +2,8 @@ import { ElasticResponse } from '../elastic_response';
|
||||
|
||||
describe('ElasticResponse', () => {
|
||||
let targets;
|
||||
let response;
|
||||
let result;
|
||||
let response: any;
|
||||
let result: any;
|
||||
|
||||
describe('simple query and count', () => {
|
||||
beforeEach(() => {
|
||||
@@ -48,7 +48,7 @@ describe('ElasticResponse', () => {
|
||||
});
|
||||
|
||||
describe('simple query count & avg aggregation', () => {
|
||||
let result;
|
||||
let result: any;
|
||||
|
||||
beforeEach(() => {
|
||||
targets = [
|
||||
@@ -97,7 +97,7 @@ describe('ElasticResponse', () => {
|
||||
});
|
||||
|
||||
describe('single group by query one metric', () => {
|
||||
let result;
|
||||
let result: any;
|
||||
|
||||
beforeEach(() => {
|
||||
targets = [
|
||||
@@ -149,7 +149,7 @@ describe('ElasticResponse', () => {
|
||||
});
|
||||
|
||||
describe('single group by query two metrics', () => {
|
||||
let result;
|
||||
let result: any;
|
||||
|
||||
beforeEach(() => {
|
||||
targets = [
|
||||
@@ -209,7 +209,7 @@ describe('ElasticResponse', () => {
|
||||
});
|
||||
|
||||
describe('with percentiles ', () => {
|
||||
let result;
|
||||
let result: any;
|
||||
|
||||
beforeEach(() => {
|
||||
targets = [
|
||||
@@ -257,7 +257,7 @@ describe('ElasticResponse', () => {
|
||||
});
|
||||
|
||||
describe('with extended_stats', () => {
|
||||
let result;
|
||||
let result: any;
|
||||
|
||||
beforeEach(() => {
|
||||
targets = [
|
||||
@@ -333,7 +333,7 @@ describe('ElasticResponse', () => {
|
||||
});
|
||||
|
||||
describe('single group by with alias pattern', () => {
|
||||
let result;
|
||||
let result: any;
|
||||
|
||||
beforeEach(() => {
|
||||
targets = [
|
||||
@@ -394,7 +394,7 @@ describe('ElasticResponse', () => {
|
||||
});
|
||||
|
||||
describe('histogram response', () => {
|
||||
let result;
|
||||
let result: any;
|
||||
|
||||
beforeEach(() => {
|
||||
targets = [
|
||||
@@ -426,7 +426,7 @@ describe('ElasticResponse', () => {
|
||||
});
|
||||
|
||||
describe('with two filters agg', () => {
|
||||
let result;
|
||||
let result: any;
|
||||
|
||||
beforeEach(() => {
|
||||
targets = [
|
||||
@@ -583,7 +583,7 @@ describe('ElasticResponse', () => {
|
||||
});
|
||||
|
||||
describe('No group by time with percentiles ', () => {
|
||||
let result;
|
||||
let result: any;
|
||||
|
||||
beforeEach(() => {
|
||||
targets = [
|
||||
@@ -720,7 +720,7 @@ describe('ElasticResponse', () => {
|
||||
});
|
||||
|
||||
describe('with bucket_script ', () => {
|
||||
let result;
|
||||
let result: any;
|
||||
|
||||
beforeEach(() => {
|
||||
targets = [
|
||||
@@ -861,7 +861,7 @@ describe('ElasticResponse', () => {
|
||||
expect(result.data[0].fields).toContainEqual({ name: '@timestamp', type: 'time' });
|
||||
expect(result.data[0].fields).toContainEqual({ name: 'host', type: 'string' });
|
||||
expect(result.data[0].fields).toContainEqual({ name: 'message', type: 'string' });
|
||||
result.data[0].rows.forEach((row, i) => {
|
||||
result.data[0].rows.forEach((row: any, i: number) => {
|
||||
expect(row).toContain(response.responses[0].hits.hits[i]._id);
|
||||
expect(row).toContain(response.responses[0].hits.hits[i]._type);
|
||||
expect(row).toContain(response.responses[0].hits.hits[i]._index);
|
||||
@@ -869,7 +869,7 @@ describe('ElasticResponse', () => {
|
||||
});
|
||||
|
||||
expect(result.data[1]).toHaveProperty('name', 'Count');
|
||||
response.responses[0].aggregations['2'].buckets.forEach(bucket => {
|
||||
response.responses[0].aggregations['2'].buckets.forEach((bucket: any) => {
|
||||
expect(result.data[1].rows).toContainEqual([bucket.doc_count, bucket.key]);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user