mirror of
https://github.com/grafana/grafana.git
synced 2024-11-30 20:54:22 -06:00
Chore: cleanup ES query_builder test (#41360)
This commit is contained in:
parent
2daae9eba8
commit
d69ffe0e44
@ -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…
Reference in New Issue
Block a user