mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: friday typings 5 (#73844)
* fix some event.target as stuff * segment async story * segmentinput story * SegmentSelect * fixing some tests * more test fixes * undo change to SilencesFilter
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { PanelModel, FieldConfigSource, DataQuery } from '@grafana/data';
|
||||
import { PanelModel, DataQuery } from '@grafana/data';
|
||||
|
||||
import { graphPanelMigrationHandler } from './GraphMigrations';
|
||||
|
||||
@@ -119,7 +119,7 @@ describe('Graph Panel Migrations', () => {
|
||||
} as Omit<PanelModel, 'fieldConfig'>;
|
||||
|
||||
const result = graphPanelMigrationHandler(panel as PanelModel);
|
||||
const fieldSource = (panel as any).fieldConfig as FieldConfigSource;
|
||||
const fieldSource = (panel as PanelModel).fieldConfig;
|
||||
|
||||
expect(result.dataLinks).toBeUndefined();
|
||||
expect(fieldSource.defaults.links).toHaveLength(1);
|
||||
@@ -145,7 +145,7 @@ describe('Graph Panel Migrations', () => {
|
||||
} as unknown as PanelModel;
|
||||
|
||||
graphPanelMigrationHandler(panel as PanelModel);
|
||||
const fieldConfig = (panel as any).fieldConfig as FieldConfigSource;
|
||||
const fieldConfig = (panel as PanelModel).fieldConfig;
|
||||
expect(fieldConfig.defaults.links).toHaveLength(1);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -2,7 +2,7 @@ import { convertValuesToHistogram, getSeriesValues } from '../histogram';
|
||||
|
||||
describe('Graph Histogam Converter', () => {
|
||||
describe('Values to histogram converter', () => {
|
||||
let values: any;
|
||||
let values: number[];
|
||||
let bucketSize = 10;
|
||||
|
||||
beforeEach(() => {
|
||||
|
||||
Reference in New Issue
Block a user