mirror of
https://github.com/apache/superset.git
synced 2026-04-24 02:25:13 +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:
@@ -27,13 +27,13 @@ describe('Timeseries buildQuery', () => {
|
||||
viz_type: 'my_chart',
|
||||
};
|
||||
|
||||
it('should build groupby with series in form data', () => {
|
||||
test('should build groupby with series in form data', () => {
|
||||
const queryContext = buildQuery(formData);
|
||||
const [query] = queryContext.queries;
|
||||
expect(query.metrics).toEqual(['bar', 'baz']);
|
||||
});
|
||||
|
||||
it('should order by timeseries limit if orderby unspecified', () => {
|
||||
test('should order by timeseries limit if orderby unspecified', () => {
|
||||
const queryContext = buildQuery({
|
||||
...formData,
|
||||
timeseries_limit_metric: 'bar',
|
||||
@@ -46,7 +46,7 @@ describe('Timeseries buildQuery', () => {
|
||||
expect(query.orderby).toEqual([['bar', false]]);
|
||||
});
|
||||
|
||||
it('should not order by timeseries limit if orderby provided', () => {
|
||||
test('should not order by timeseries limit if orderby provided', () => {
|
||||
const queryContext = buildQuery({
|
||||
...formData,
|
||||
timeseries_limit_metric: 'bar',
|
||||
@@ -72,7 +72,7 @@ describe('queryObject conversion', () => {
|
||||
metrics: ['count(*)'],
|
||||
};
|
||||
|
||||
it("shouldn't convert queryObject", () => {
|
||||
test("shouldn't convert queryObject", () => {
|
||||
const { queries } = buildQuery(formData);
|
||||
expect(queries[0]).toEqual(
|
||||
expect.objectContaining({
|
||||
@@ -99,7 +99,7 @@ describe('queryObject conversion', () => {
|
||||
);
|
||||
});
|
||||
|
||||
it('should convert queryObject', () => {
|
||||
test('should convert queryObject', () => {
|
||||
const { queries } = buildQuery({ ...formData, x_axis: 'time_column' });
|
||||
expect(queries[0]).toMatchObject({
|
||||
granularity: 'time_column',
|
||||
|
||||
Reference in New Issue
Block a user