mirror of
https://github.com/apache/superset.git
synced 2026-04-25 19:14:27 +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:
@@ -25,21 +25,21 @@ describe('Gauge buildQuery', () => {
|
||||
viz_type: 'my_chart',
|
||||
};
|
||||
|
||||
it('should build query fields with no group by column', () => {
|
||||
test('should build query fields with no group by column', () => {
|
||||
const formData = { ...baseFormData, groupby: undefined };
|
||||
const queryContext = buildQuery(formData);
|
||||
const [query] = queryContext.queries;
|
||||
expect(query.columns).toEqual([]);
|
||||
});
|
||||
|
||||
it('should build query fields with single group by column', () => {
|
||||
test('should build query fields with single group by column', () => {
|
||||
const formData = { ...baseFormData, groupby: ['foo'] };
|
||||
const queryContext = buildQuery(formData);
|
||||
const [query] = queryContext.queries;
|
||||
expect(query.columns).toEqual(['foo']);
|
||||
});
|
||||
|
||||
it('should build query fields with multiple group by columns', () => {
|
||||
test('should build query fields with multiple group by columns', () => {
|
||||
const formData = { ...baseFormData, groupby: ['foo', 'bar'] };
|
||||
const queryContext = buildQuery(formData);
|
||||
const [query] = queryContext.queries;
|
||||
|
||||
Reference in New Issue
Block a user