Skip to content

Commit

Permalink
chore: superset-ui/core code coverage (#20304)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoyongjie authored Jun 8, 2022
1 parent d3670f1 commit 8e46ae5
Showing 1 changed file with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,29 @@ describe('buildQueryContext', () => {
]),
);
});
it('should remove undefined value in post_processing', () => {
const queryContext = buildQueryContext(
{
datasource: '5__table',
viz_type: 'table',
},
() => [
{
post_processing: [
undefined,
undefined,
{
operation: 'flatten',
},
undefined,
],
},
],
);
expect(queryContext.queries[0].post_processing).toEqual([
{
operation: 'flatten',
},
]);
});
});

0 comments on commit 8e46ae5

Please sign in to comment.