mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
refactor: decouple DataTableControl (#20226)
This commit is contained in:
@@ -107,7 +107,7 @@ test('useTableColumns with no options', () => {
|
||||
name: 'DataTableTemporalHeaderCell',
|
||||
}),
|
||||
props: expect.objectContaining({
|
||||
originalFormattedTimeColumnIndex: -1,
|
||||
onTimeColumnChange: expect.any(Function),
|
||||
}),
|
||||
}),
|
||||
accessor: expect.any(Function),
|
||||
@@ -135,7 +135,7 @@ test('useTableColumns with no options', () => {
|
||||
|
||||
test('useTableColumns with options', () => {
|
||||
const hook = renderHook(() =>
|
||||
useTableColumns(colnames, coltypes, data, undefined, [], {
|
||||
useTableColumns(colnames, coltypes, data, undefined, true, {
|
||||
col01: { Header: 'Header' },
|
||||
}),
|
||||
);
|
||||
@@ -171,7 +171,7 @@ test('useTableColumns with options', () => {
|
||||
name: 'DataTableTemporalHeaderCell',
|
||||
}),
|
||||
props: expect.objectContaining({
|
||||
originalFormattedTimeColumnIndex: -1,
|
||||
onTimeColumnChange: expect.any(Function),
|
||||
}),
|
||||
}),
|
||||
accessor: expect.any(Function),
|
||||
|
||||
Reference in New Issue
Block a user