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:
Ashley Harrison
2023-08-29 09:14:15 +01:00
committed by GitHub
parent eea4adea29
commit 0853819ff7
21 changed files with 156 additions and 246 deletions

View File

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

View File

@@ -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(() => {