mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Prometheus: Fixes default step value for annotation query (#21934)
Fixes #21914
This commit is contained in:
@@ -1,8 +1,14 @@
|
||||
import { plugin as PrometheusDatasourcePlugin } from './module';
|
||||
import { ANNOTATION_QUERY_STEP_DEFAULT } from './datasource';
|
||||
|
||||
describe('module', () => {
|
||||
it('should have metrics query field in panels and Explore', () => {
|
||||
expect(PrometheusDatasourcePlugin.components.ExploreMetricsQueryField).toBeDefined();
|
||||
expect(PrometheusDatasourcePlugin.components.QueryEditor).toBeDefined();
|
||||
});
|
||||
it('should have stepDefaultValuePlaceholder set in annotations ctrl', () => {
|
||||
expect(PrometheusDatasourcePlugin.components.AnnotationsQueryCtrl).toBeDefined();
|
||||
const annotationsCtrl = new PrometheusDatasourcePlugin.components.AnnotationsQueryCtrl();
|
||||
expect(annotationsCtrl.stepDefaultValuePlaceholder).toEqual(ANNOTATION_QUERY_STEP_DEFAULT);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user