mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
refactor: Creates the VizType enum (#31193)
This commit is contained in:
committed by
GitHub
parent
dbcb473040
commit
93ba8e16c3
@@ -16,7 +16,12 @@
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
import { ChartProps, QueryFormData, supersetTheme } from '@superset-ui/core';
|
||||
import {
|
||||
ChartProps,
|
||||
QueryFormData,
|
||||
supersetTheme,
|
||||
VizType,
|
||||
} from '@superset-ui/core';
|
||||
import { HandlebarsQueryFormData } from '../../src/types';
|
||||
import transformProps from '../../src/plugin/transformProps';
|
||||
|
||||
@@ -29,7 +34,7 @@ describe('Handlebars transformProps', () => {
|
||||
groupby: ['name'],
|
||||
width: 500,
|
||||
height: 500,
|
||||
viz_type: 'handlebars',
|
||||
viz_type: VizType.Handlebars,
|
||||
};
|
||||
const data = [{ name: 'Hulk', sum__num: 1, __timestamp: 599616000000 }];
|
||||
const chartProps = new ChartProps<QueryFormData>({
|
||||
|
||||
Reference in New Issue
Block a user