feat: implement new version of word cloud (#9962)

This commit is contained in:
Ville Brofeldt
2020-06-02 19:28:58 +03:00
committed by GitHub
parent 38a6bd79da
commit fc92692f49
9 changed files with 34 additions and 27 deletions

View File

@@ -109,7 +109,7 @@ describe('controlUtils', () => {
name: 'all_columns',
config: {
type: 'SelectControl',
controlGroup: 'columns',
queryField: 'columns',
multi: true,
label: t('Columns'),
default: [],
@@ -250,11 +250,11 @@ describe('controlUtils', () => {
});
});
describe('controlGroup', () => {
describe('queryFields', () => {
it('in formData', () => {
const controlsState = getAllControlsState('table', 'table', {}, {});
const formData = getFormDataFromControls(controlsState);
expect(formData.controlGroups).toEqual({ all_columns: 'columns' });
expect(formData.queryFields).toEqual({ all_columns: 'columns' });
});
});
});