mirror of
https://github.com/apache/superset.git
synced 2026-04-20 08:34:37 +00:00
chore(lint): enforce more strict eslint/oxlint rules (batch 2) (#37884)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -196,7 +196,9 @@ describe('BigNumberWithTrendline', () => {
|
||||
showXAxis: true,
|
||||
},
|
||||
});
|
||||
expect((transformed.echartOptions?.xAxis as any).show).toBe(true);
|
||||
expect((transformed.echartOptions!.xAxis as { show: boolean }).show).toBe(
|
||||
true,
|
||||
);
|
||||
});
|
||||
|
||||
test('should not show X axis when showXAxis is false', () => {
|
||||
@@ -207,7 +209,9 @@ describe('BigNumberWithTrendline', () => {
|
||||
showXAxis: false,
|
||||
},
|
||||
});
|
||||
expect((transformed.echartOptions?.xAxis as any).show).toBe(false);
|
||||
expect((transformed.echartOptions!.xAxis as { show: boolean }).show).toBe(
|
||||
false,
|
||||
);
|
||||
});
|
||||
|
||||
test('should show Y axis when showYAxis is true', () => {
|
||||
@@ -218,7 +222,9 @@ describe('BigNumberWithTrendline', () => {
|
||||
showYAxis: true,
|
||||
},
|
||||
});
|
||||
expect((transformed.echartOptions?.yAxis as any).show).toBe(true);
|
||||
expect((transformed.echartOptions!.yAxis as { show: boolean }).show).toBe(
|
||||
true,
|
||||
);
|
||||
});
|
||||
|
||||
test('should not show Y axis when showYAxis is false', () => {
|
||||
@@ -229,7 +235,9 @@ describe('BigNumberWithTrendline', () => {
|
||||
showYAxis: false,
|
||||
},
|
||||
});
|
||||
expect((transformed.echartOptions?.yAxis as any).show).toBe(false);
|
||||
expect((transformed.echartOptions!.yAxis as { show: boolean }).show).toBe(
|
||||
false,
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user