feat(explore): adhoc column formatting for Table chart (#13758)

This commit is contained in:
Jesse Yang
2021-04-01 23:28:42 -07:00
committed by GitHub
parent 4789074309
commit 65940770ac
8 changed files with 57870 additions and 289 deletions

View File

@@ -17,6 +17,7 @@
* under the License.
*/
import React from 'react';
import { ColumnType } from '@superset-ui/core';
import { render, screen } from 'spec/helpers/testing-library';
import AdhocMetric from 'src/explore/components/controls/MetricControl/AdhocMetric';
import AdhocFilter, {
@@ -62,7 +63,7 @@ test('renders options with column', () => {
render(
<DndFilterSelect
{...defaultProps}
columns={[{ id: 1, type: 'string', column_name: 'Column' }]}
columns={[{ id: 1, type: ColumnType.STRING, column_name: 'Column' }]}
/>,
{
useDnd: true,