mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
feat: implement new version of word cloud (#9962)
This commit is contained in:
@@ -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);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user