Chore: cleanup ES query_builder test (#41360)

pull/41372/head
Giordano Ricci 4 years ago committed by GitHub
parent 2daae9eba8
commit d69ffe0e44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      public/app/plugins/datasource/elasticsearch/specs/query_builder.test.ts

@ -888,7 +888,6 @@ describe('ElasticQueryBuilder', () => {
describe('field property', () => {
it('should use timeField from datasource when not specified', () => {
const expectedTimezone = 'America/Los_angeles';
const query = builder.build({
refId: 'A',
metrics: [{ type: 'count', id: '1' }],
@ -897,7 +896,7 @@ describe('ElasticQueryBuilder', () => {
{
type: 'date_histogram',
id: '2',
settings: { min_doc_count: '1', timeZone: expectedTimezone },
settings: { min_doc_count: '1' },
},
],
});
@ -906,7 +905,6 @@ describe('ElasticQueryBuilder', () => {
});
it('should use field from bucket agg when specified', () => {
const expectedTimezone = 'America/Los_angeles';
const query = builder.build({
refId: 'A',
metrics: [{ type: 'count', id: '1' }],
@ -916,7 +914,7 @@ describe('ElasticQueryBuilder', () => {
type: 'date_histogram',
id: '2',
field: '@time',
settings: { min_doc_count: '1', timeZone: expectedTimezone },
settings: { min_doc_count: '1' },
},
],
});

Loading…
Cancel
Save