mirror of
https://github.com/apache/superset.git
synced 2026-04-07 18:35:15 +00:00
fix(deckgl): use DatasourceType enum in polygon transformProps test + some TS issues (#36336)
This commit is contained in:
committed by
GitHub
parent
01f032017f
commit
a745fd49fa
@@ -17,7 +17,7 @@
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
import { ChartProps } from '@superset-ui/core';
|
||||
import { ChartProps, DatasourceType } from '@superset-ui/core';
|
||||
import transformProps from './transformProps';
|
||||
|
||||
interface PolygonFeature {
|
||||
@@ -55,7 +55,13 @@ describe('Polygon transformProps', () => {
|
||||
],
|
||||
},
|
||||
],
|
||||
datasource: { type: 'table' as const, id: 1 },
|
||||
datasource: {
|
||||
type: DatasourceType.Table,
|
||||
id: 1,
|
||||
name: 'test_datasource',
|
||||
columns: [],
|
||||
metrics: [],
|
||||
},
|
||||
height: 400,
|
||||
width: 600,
|
||||
hooks: {},
|
||||
|
||||
Reference in New Issue
Block a user