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

@@ -68,13 +68,16 @@ describe('store', () => {
});
it('removes out of scope, or deprecated keys', () => {
const staleQueryFields = { staleKey: 'staleValue' };
const inputFormData = {
datasource: '11_table',
viz_type: 'table',
queryFields: staleQueryFields,
this_should_no_be_here: true,
};
const outputFormData = applyDefaultFormData(inputFormData);
expect(outputFormData.this_should_no_be_here).toBe(undefined);
expect(outputFormData.queryFields).not.toBe(staleQueryFields);
});
});
});