[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:
Krist Wongsuphasawat
2018-08-31 15:42:44 -07:00
committed by Chris Williams
parent 5e3f8332c4
commit 8a4b1b7c25
5 changed files with 184 additions and 126 deletions

View File

@@ -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 = {