Skip to content

Commit

Permalink
Fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
VladLasitsa committed Oct 14, 2022
1 parent e659105 commit 620a802
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/kbn-optimizer/limits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,6 @@ pageLoadAssetSize:
visTypeTimeseries: 55203
visTypeVega: 153573
visTypeVislib: 242838
visTypeXy: 31600
visTypeXy: 31800
visualizations: 90000
watcher: 43598
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,16 @@ describe('convertToLens', () => {
expect(result).toBeNull();
});

test('should return null if defined several metrics with terms split series which uses one of the metrics as order agg', async () => {
test('should return null if defined several layers with terms split series which uses one of the metrics as order agg', async () => {
mockGetColumnsFromVis.mockReturnValue([
{
buckets: { all: ['1'], customBuckets: { metric1: '2' } },
columns: [{ isSplit: true, params: { orderBy: { type: 'column' } } }],
},
{
buckets: { all: ['2'], customBuckets: { metric1: '2' } },
columns: [{}],
},
]);
mockGetVisSchemas.mockReturnValue({
metric: [{ aggId: '1' }, { aggId: '2' }],
Expand Down

0 comments on commit 620a802

Please sign in to comment.