[WIP] [explorev2] Refactor filter into FieldSet (#1981)

* [explorev2] Refactor filter into FieldSet

* Fixed tests

* Added tests

* Modifications based on comments
This commit is contained in:
vera-liu
2017-01-24 13:32:40 -08:00
committed by GitHub
parent 2b7673ad5d
commit 1c338ba742
19 changed files with 274 additions and 324 deletions

View File

@@ -15,15 +15,4 @@ describe('reducers', () => {
actions.setFieldValue('show_legend', true));
expect(newState.viz.form_data.show_legend).to.equal(true);
});
it('adds a filter given a new filter', () => {
const newState = exploreReducer(initialState('table'),
actions.addFilter({
id: 1,
prefix: 'flt',
col: null,
op: null,
value: null,
}));
expect(newState.viz.form_data.filters).to.have.length(1);
});
});