mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +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:
@@ -58,7 +58,7 @@ const chartPropsConfig = {
|
||||
};
|
||||
|
||||
describe('EchartsGraph transformProps', () => {
|
||||
it('should transform chart props for viz without category', () => {
|
||||
test('should transform chart props for viz without category', () => {
|
||||
const chartProps = new ChartProps(chartPropsConfig);
|
||||
expect(transformProps(chartProps as EchartsGraphChartProps)).toEqual(
|
||||
expect.objectContaining({
|
||||
@@ -169,7 +169,7 @@ describe('EchartsGraph transformProps', () => {
|
||||
);
|
||||
});
|
||||
|
||||
it('should transform chart props for viz with category and falsy normalization', () => {
|
||||
test('should transform chart props for viz with category and falsy normalization', () => {
|
||||
const formData: SqlaFormData = {
|
||||
colorScheme: 'bnbColors',
|
||||
datasource: '3__table',
|
||||
@@ -313,7 +313,7 @@ describe('legend sorting', () => {
|
||||
queriesData,
|
||||
});
|
||||
|
||||
it('sort legend by data', () => {
|
||||
test('sort legend by data', () => {
|
||||
const chartProps = getChartProps({
|
||||
legendSort: null,
|
||||
});
|
||||
@@ -326,7 +326,7 @@ describe('legend sorting', () => {
|
||||
]);
|
||||
});
|
||||
|
||||
it('sort legend by label ascending', () => {
|
||||
test('sort legend by label ascending', () => {
|
||||
const chartProps = getChartProps({
|
||||
legendSort: 'asc',
|
||||
});
|
||||
@@ -339,7 +339,7 @@ describe('legend sorting', () => {
|
||||
]);
|
||||
});
|
||||
|
||||
it('sort legend by label descending', () => {
|
||||
test('sort legend by label descending', () => {
|
||||
const chartProps = getChartProps({
|
||||
legendSort: 'desc',
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user