mirror of
https://github.com/apache/superset.git
synced 2026-04-23 10:04:45 +00:00
chore(lint): migrate Jest lint rules from eslint to oxlint (#37787)
Signed-off-by: hainenber <dotronghai96@gmail.com>
This commit is contained in:
@@ -86,7 +86,7 @@ const chartPropsConfig = {
|
||||
};
|
||||
|
||||
describe('Gantt transformProps', () => {
|
||||
it('should transform chart props', () => {
|
||||
test('should transform chart props', () => {
|
||||
const chartProps = new ChartProps(chartPropsConfig);
|
||||
const transformedProps = transformProps(
|
||||
chartProps as EchartsGanttChartProps,
|
||||
@@ -280,7 +280,7 @@ describe('legend sorting', () => {
|
||||
},
|
||||
});
|
||||
|
||||
it('preserves original data order when no sort specified', () => {
|
||||
test('preserves original data order when no sort specified', () => {
|
||||
const props = createChartProps({ legendSort: null });
|
||||
const result = transformProps(props as EchartsGanttChartProps);
|
||||
|
||||
@@ -288,7 +288,7 @@ describe('legend sorting', () => {
|
||||
expect(legendData).toEqual(['series value 1', 'series value 2']);
|
||||
});
|
||||
|
||||
it('sorts alphabetically ascending when legendSort is "asc"', () => {
|
||||
test('sorts alphabetically ascending when legendSort is "asc"', () => {
|
||||
const props = createChartProps({ legendSort: 'asc' });
|
||||
const result = transformProps(props as EchartsGanttChartProps);
|
||||
|
||||
@@ -296,7 +296,7 @@ describe('legend sorting', () => {
|
||||
expect(legendData).toEqual(['series value 1', 'series value 2']);
|
||||
});
|
||||
|
||||
it('sorts alphabetically descending when legendSort is "desc"', () => {
|
||||
test('sorts alphabetically descending when legendSort is "desc"', () => {
|
||||
const props = createChartProps({ legendSort: 'desc' });
|
||||
const result = transformProps(props as EchartsGanttChartProps);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user