mirror of
https://github.com/apache/superset.git
synced 2026-04-18 23:55:00 +00:00
[SIP-5] Refactor table (#5707)
* update indent * extract formData and data. * take filter * remove dependencies * remove removeFilter * add comment * remove columnFormats and verboseMap from props. clarify a few more props * fix linting issue * minor syntax * syntax fix * Move check to adaptor * update unit test * remove code related to .widget * rename variables for clarity * move Option fix to browser.js
This commit is contained in:
committed by
Chris Williams
parent
5e3f8332c4
commit
8a4b1b7c25
@@ -1,10 +1,7 @@
|
||||
import { describe, it } from 'mocha';
|
||||
import { expect } from 'chai';
|
||||
import $ from 'jquery';
|
||||
|
||||
import '../../helpers/browser';
|
||||
import { d3format } from '../../../src/modules/utils';
|
||||
|
||||
import tableVis from '../../../src/visualizations/table';
|
||||
|
||||
describe('table viz', () => {
|
||||
@@ -18,10 +15,9 @@ describe('table viz', () => {
|
||||
datasource: {
|
||||
verbose_map: {},
|
||||
},
|
||||
getFilters: () => {},
|
||||
d3format,
|
||||
removeFilter: null,
|
||||
addFilter: null,
|
||||
getFilters: () => ({}),
|
||||
removeFilter() {},
|
||||
addFilter() {},
|
||||
height: () => 0,
|
||||
};
|
||||
const basePayload = {
|
||||
|
||||
Reference in New Issue
Block a user