Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
VladLasitsa committed Sep 28, 2020
1 parent a96d784 commit aee2b2e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,9 @@ describe('MetricsAxisOptions component', () => {
const updatedValues = [{ ...axis, title: { text: agg.makeLabel() } }];

expect(setValue).toHaveBeenCalledTimes(6);
expect(setValue).toHaveBeenNthCalledWith(3, SERIES_PARAMS, updatedSeriesParams);
expect(setValue).toHaveBeenNthCalledWith(5, SERIES_PARAMS, updatedSeriesParams);
expect(setValue).toHaveBeenNthCalledWith(4, VALUE_AXES, updatedValues);
expect(setValue).toHaveBeenNthCalledWith(4, SERIES_PARAMS, updatedSeriesParams);
expect(setValue).toHaveBeenNthCalledWith(6, SERIES_PARAMS, updatedSeriesParams);
expect(setValue).toHaveBeenNthCalledWith(5, VALUE_AXES, updatedValues);
});

it('should not set the custom title to match the value axis label when more than one agg exists for that axis', () => {
Expand Down

0 comments on commit aee2b2e

Please sign in to comment.