chore: add type checking in plugin test directory (#19387)

This commit is contained in:
Stephen Liu
2022-03-28 10:20:06 +08:00
committed by GitHub
parent 5ae7e54999
commit 6f5778273e
21 changed files with 91 additions and 56 deletions

View File

@@ -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,