mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
chore: add type checking in plugin test directory (#19387)
This commit is contained in:
@@ -20,7 +20,10 @@ import { ChartProps, getNumberFormatter } from '@superset-ui/core';
|
||||
import transformProps, {
|
||||
formatFunnelLabel,
|
||||
} from '../../src/Funnel/transformProps';
|
||||
import { EchartsFunnelLabelTypeType } from '../../src/Funnel/types';
|
||||
import {
|
||||
EchartsFunnelChartProps,
|
||||
EchartsFunnelLabelTypeType,
|
||||
} from '../../src/Funnel/types';
|
||||
|
||||
describe('Funnel tranformProps', () => {
|
||||
const formData = {
|
||||
@@ -45,7 +48,7 @@ describe('Funnel tranformProps', () => {
|
||||
});
|
||||
|
||||
it('should tranform chart props for viz', () => {
|
||||
expect(transformProps(chartProps)).toEqual(
|
||||
expect(transformProps(chartProps as EchartsFunnelChartProps)).toEqual(
|
||||
expect.objectContaining({
|
||||
width: 800,
|
||||
height: 600,
|
||||
|
||||
Reference in New Issue
Block a user