mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
chore(frontend): comprehensive TypeScript quality improvements (#37625)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -134,7 +134,7 @@ describe('BigNumberWithTrendline', () => {
|
||||
expect(transformed.bigNumberFallback).toBeNull();
|
||||
|
||||
// should successfully formatTime by granularity
|
||||
// @ts-ignore
|
||||
// @ts-expect-error
|
||||
expect(transformed.formatTime(new Date('2020-01-01'))).toStrictEqual(
|
||||
'2020-01-01 00:00:00',
|
||||
);
|
||||
@@ -156,7 +156,7 @@ describe('BigNumberWithTrendline', () => {
|
||||
},
|
||||
};
|
||||
const transformed = transformProps(propsWithDatasource);
|
||||
// @ts-ignore
|
||||
// @ts-expect-error
|
||||
expect(transformed.headerFormatter(transformed.bigNumber)).toStrictEqual(
|
||||
'1.23',
|
||||
);
|
||||
@@ -182,7 +182,7 @@ describe('BigNumberWithTrendline', () => {
|
||||
},
|
||||
};
|
||||
const transformed = transformProps(propsWithDatasource);
|
||||
// @ts-ignore
|
||||
// @ts-expect-error
|
||||
expect(transformed.headerFormatter(transformed.bigNumber)).toStrictEqual(
|
||||
'$ 1.23',
|
||||
);
|
||||
|
||||
@@ -52,7 +52,7 @@ const mockControls = (
|
||||
|
||||
return {
|
||||
controls: {
|
||||
// @ts-ignore
|
||||
// @ts-expect-error
|
||||
x_axis: {
|
||||
value: xAxisColumn,
|
||||
options: options,
|
||||
|
||||
@@ -70,7 +70,6 @@ describe('Scatter Chart X-axis Time Formatting', () => {
|
||||
});
|
||||
|
||||
const transformedProps = transformProps(
|
||||
// @ts-ignore
|
||||
chartProps as EchartsTimeseriesChartProps,
|
||||
);
|
||||
|
||||
@@ -92,7 +91,6 @@ describe('Scatter Chart X-axis Time Formatting', () => {
|
||||
});
|
||||
|
||||
const transformedProps = transformProps(
|
||||
// @ts-ignore
|
||||
chartProps as EchartsTimeseriesChartProps,
|
||||
);
|
||||
|
||||
@@ -146,7 +144,6 @@ describe('Scatter Chart X-axis Number Formatting', () => {
|
||||
});
|
||||
|
||||
const transformedProps = transformProps(
|
||||
// @ts-ignore
|
||||
chartProps as EchartsTimeseriesChartProps,
|
||||
);
|
||||
|
||||
@@ -169,7 +166,6 @@ describe('Scatter Chart X-axis Number Formatting', () => {
|
||||
});
|
||||
|
||||
const transformedProps = transformProps(
|
||||
// @ts-ignore
|
||||
chartProps as EchartsTimeseriesChartProps,
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user