mirror of
https://github.com/apache/superset.git
synced 2026-04-26 03:24:53 +00:00
[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:
@@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user