|
|
@ -2,7 +2,6 @@ import { render, screen } from '@testing-library/react'; |
|
|
|
import React from 'react'; |
|
|
|
import React from 'react'; |
|
|
|
import { openMenu } from 'react-select-event'; |
|
|
|
import { openMenu } from 'react-select-event'; |
|
|
|
|
|
|
|
|
|
|
|
import { TemplateSrvStub } from '../../../../../test/specs/helpers'; |
|
|
|
|
|
|
|
import { MetricKind, ValueTypes } from '../types/query'; |
|
|
|
import { MetricKind, ValueTypes } from '../types/query'; |
|
|
|
import { MetricDescriptor } from '../types/types'; |
|
|
|
import { MetricDescriptor } from '../types/types'; |
|
|
|
|
|
|
|
|
|
|
@ -10,8 +9,6 @@ import { Aggregation, Props } from './Aggregation'; |
|
|
|
|
|
|
|
|
|
|
|
const props: Props = { |
|
|
|
const props: Props = { |
|
|
|
onChange: () => {}, |
|
|
|
onChange: () => {}, |
|
|
|
// @ts-ignore
|
|
|
|
|
|
|
|
templateSrv: new TemplateSrvStub(), |
|
|
|
|
|
|
|
metricDescriptor: { |
|
|
|
metricDescriptor: { |
|
|
|
valueType: '', |
|
|
|
valueType: '', |
|
|
|
metricKind: '', |
|
|
|
metricKind: '', |
|
|
@ -19,6 +16,7 @@ const props: Props = { |
|
|
|
crossSeriesReducer: '', |
|
|
|
crossSeriesReducer: '', |
|
|
|
groupBys: [], |
|
|
|
groupBys: [], |
|
|
|
templateVariableOptions: [], |
|
|
|
templateVariableOptions: [], |
|
|
|
|
|
|
|
refId: 'A', |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
describe('Aggregation', () => { |
|
|
|
describe('Aggregation', () => { |
|
|
|