1
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

14 lines
764 B

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);
});
});